allow to open https:// urls

This commit is contained in:
Thomas Debesse 2018-01-22 19:54:35 +01:00
parent 95ae5af82b
commit 574dd47394
1 changed files with 2 additions and 1 deletions

View File

@ -902,7 +902,8 @@ void MainFrame::process_xlink( Str &FileName, const char *menu_name, const char
if ( !strcmp( (const char*)pNode->name, "item" ) ) {
// process the URL
Str *url;
if ( strstr( (char *)xmlGetProp( pNode, (xmlChar *)"url" ), "http://" ) ) {
if ( strstr( (char *)xmlGetProp( pNode, (xmlChar *)"url" ), "http://" )
|| strstr( (char *)xmlGetProp( pNode, (xmlChar *)"url" ), "https://" ) ) {
// complete URL
url = new Str;
*url = (char *)xmlGetProp( pNode, (xmlChar *)"url" );