Commits

Reimar Bauer committed fe5ca63 Draft

workaround for werkzeug issue 146 by Sam Toyer added

Comments (0)

Files changed (1)

xstatic/pkg/svgedit_moin/data/editor/extensions/ext-server_moinsave.js

 			save: function(win, data) {
 				var svg = "<?xml version=\"1.0\"?>\n" + data;
 				var qstr = $.param.querystring();
-				var name = qstr.substr(9).split('/+get/')[1];
+                var name = qstr.substr(9).split(/\/(?:\+|%2B)get\//)[1];
 				var svg_data = svgedit.utilities.encode64(svg);
 				if(!$('#export_canvas').length) {
 					$('<canvas>', {id: 'export_canvas'}).hide().appendTo('body');