]> git.sesse.net Git - vlc/commitdiff
Fix quotes arround inputs like "fake: option fake-file=thing.png" which should be...
authorAntoine Cellerier <dionoea@videolan.org>
Sat, 1 Apr 2006 17:28:29 +0000 (17:28 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sat, 1 Apr 2006 17:28:29 +0000 (17:28 +0000)
share/http/js/vlm.js

index a89880e09439b985d2bab72885307b41a6b14c5f..120fddc07f74d02517657968f1264c7a87d7f8d8 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( /$/, '"' );
+    return str.replace( /\\/g, '\\\\').replace( /\'/g, '\\\'' ).replace( /\"/g, '\\\"' ).replace( /^/, '"' ).replace( /$/, '"' ).replace( /\ option\ /g, '" option "' );
 }
 
 function update_vlm_add_broadcast()