Don't load javascript: and data: URIs from URI field
This commit is contained in:
parent
490794dfb9
commit
f0d58fa948
1 changed files with 5 additions and 0 deletions
|
@ -2557,6 +2557,11 @@ var ZoteroPane = new function()
|
||||||
* shift-click == new window, no modifier == frontmost tab
|
* shift-click == new window, no modifier == frontmost tab
|
||||||
*/
|
*/
|
||||||
function loadURI(uri, event, data) {
|
function loadURI(uri, event, data) {
|
||||||
|
// Ignore javascript: and data: URIs
|
||||||
|
if (uri.match(/^(javascript|data):/)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (Zotero.isStandalone && uri.match(/^https?/)) {
|
if (Zotero.isStandalone && uri.match(/^https?/)) {
|
||||||
var io = Components.classes['@mozilla.org/network/io-service;1']
|
var io = Components.classes['@mozilla.org/network/io-service;1']
|
||||||
.getService(Components.interfaces.nsIIOService);
|
.getService(Components.interfaces.nsIIOService);
|
||||||
|
|
Loading…
Reference in a new issue