1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-27 01:25:34 +00: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;
}
if (list_empty(allowed_urls)) {
return 1;
}
url = get_uri_string(interpreter->vs->doc_view->document->uri, URI_PUBLIC);
if (!url) {
return 0;