mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[ecmascript] exception for empty list. Allow all urls.
This commit is contained in:
parent
471fe54053
commit
de793bbf73
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user