0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[ecmascript] exception for empty list. Allow all urls.

This commit is contained in:
Witold Filipczyk
2020-12-09 16:13:20 +01:00
parent 471fe54053
commit de793bbf73

View File

@@ -117,6 +117,10 @@ get_ecmascript_enable(struct ecmascript_interpreter *interpreter)
return 0; return 0;
} }
if (list_empty(allowed_urls)) {
return 1;
}
url = get_uri_string(interpreter->vs->doc_view->document->uri, URI_PUBLIC); url = get_uri_string(interpreter->vs->doc_view->document->uri, URI_PUBLIC);
if (!url) { if (!url) {
return 0; return 0;