Commit 8af7871c authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

Add Jon's re code to strip off the leading xml string.

parent 8e3b9b68
......@@ -622,6 +622,11 @@ function (_, sup, filesize, JacksEditor, ShowImagingModal,
function NewRspecHandler(newrspec, oldrspec)
newrspec = $.trim(newrspec);
var findEncoding = RegExp('^\\s*<\\?[^?]*\\?>');
var match = findEncoding.exec(newrspec);
if (match) {
newrspec = newrspec.slice(match[0].length);
var newxmlDoc = parseXML(newrspec);
if (newxmlDoc == null)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment