mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-21 11:01:26 +02:00
Fix bug.
This commit is contained in:
@@ -184,6 +184,8 @@ function XMLChannel(uri, contentType, noErrorChannel, unprivileged) {
|
||||
if (!unprivileged)
|
||||
this.channel.owner = systemPrincipal;
|
||||
|
||||
let type = this.channel.contentType;
|
||||
if (type.indexOf("text/") == 0 || type.indexOf("+xml") == type.length - 4) {
|
||||
let stream = services.InputStream(channelStream);
|
||||
let [, pre, doctype, url, extra, open, post] = util.regexp(<![CDATA[
|
||||
^ ([^]*?)
|
||||
@@ -209,6 +211,7 @@ function XMLChannel(uri, contentType, noErrorChannel, unprivileged) {
|
||||
this.addChannel(url);
|
||||
}
|
||||
}
|
||||
}
|
||||
this.writes.push(channelStream);
|
||||
|
||||
this.writeNext();
|
||||
|
||||
@@ -1316,7 +1316,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
|
||||
* Escapes a string against shell meta-characters and argument
|
||||
* separators.
|
||||
*/
|
||||
shellEscape: function shellEscape(str) '"' + String.replace(str, /[\\"$]/g, "\\$&") + '"',
|
||||
shellEscape: function shellEscape(str) '"' + String.replace(str, /[\\"$`]/g, "\\$&") + '"',
|
||||
|
||||
/**
|
||||
* Suspend execution for at least *delay* milliseconds. Functions by
|
||||
|
||||
Reference in New Issue
Block a user