allow to open https:// urls

This commit is contained in:
Thomas Debesse 2018-01-22 19:54:35 +01:00
parent 95ae5af82b
commit 574dd47394

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" ) ) { if ( !strcmp( (const char*)pNode->name, "item" ) ) {
// process the URL // process the URL
Str *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 // complete URL
url = new Str; url = new Str;
*url = (char *)xmlGetProp( pNode, (xmlChar *)"url" ); *url = (char *)xmlGetProp( pNode, (xmlChar *)"url" );