Don't load javascript: and data: URIs from URI field

This commit is contained in:
Dan Stillman 2010-10-09 20:33:55 +00:00
parent 490794dfb9
commit f0d58fa948

View file

@ -2557,6 +2557,11 @@ var ZoteroPane = new function()
* shift-click == new window, no modifier == frontmost tab
*/
function loadURI(uri, event, data) {
// Ignore javascript: and data: URIs
if (uri.match(/^(javascript|data):/)) {
return;
}
if (Zotero.isStandalone && uri.match(/^https?/)) {
var io = Components.classes['@mozilla.org/network/io-service;1']
.getService(Components.interfaces.nsIIOService);