Feature #2004 fix accents

skala
Juan Carlos Raña 15 years ago
parent 434d5721da
commit 2ac952541a
  1. 6
      main/inc/lib/svg-edit/extensions/ext-server_opensave.js

@ -21,7 +21,7 @@ svgEditor.addExtension("server_opensave", {
var svg = "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" + data; // Chamilo add encoding="UTF-8"
var title = svgCanvas.getDocumentTitle();
var filename = title.replace(/[^a-z0-9\.\_\-]+/gi, '_');//Chamilo replace by below
//var filename = title.replace(/[^a-z0-9\.\_\-]+/gi, '_');//Chamilo replace by below
var filename =title;//Chamilo TODO:check if the filter through filesave.php is enough
var form = $('<form>').attr({
@ -60,7 +60,9 @@ svgEditor.addExtension("server_opensave", {
}
var title = svgCanvas.getDocumentTitle();
var filename = title.replace(/[^a-z0-9\.\_\-]+/gi, '_');
//var filename = title.replace(/[^a-z0-9\.\_\-]+/gi, '_');//Chamilo replace by below
var filename =title;//Chamilo TODO:check if the filter through filesave.php is enough
var form = $('<form>').attr({
method: 'post',

Loading…
Cancel
Save