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:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user