Browse Source

Feature #2004 fix accents

Juan Carlos Raña 14 years ago
parent
commit
2ac952541a
1 changed files with 4 additions and 2 deletions
  1. 4 2
      main/inc/lib/svg-edit/extensions/ext-server_opensave.js

+ 4 - 2
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',