]> git.sesse.net Git - vlc/commitdiff
Don't duplicate backslashes in VLM HTTP interface anymore. Could someone confirm...
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 3 Dec 2006 20:56:28 +0000 (20:56 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 3 Dec 2006 20:56:28 +0000 (20:56 +0000)
share/http/js/vlm.js

index b38fe07a93937e000c437629cbc18c29703cf6af..c41692d61f700f6f770727526db3eb60da61dde9 100644 (file)
@@ -153,7 +153,7 @@ function vlm_schedule_type_change( name )
 
 function sanitize_input( str )
 {
-    return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
+    return str.replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
 }
 
 function update_vlm_add_broadcast()