]> git.sesse.net Git - vlc/blobdiff - share/http/js/vlm.js
Fix quotes arround inputs like "fake: option fake-file=thing.png" which should be...
[vlc] / 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()