From eedd4e6bfbc5cb2f05597e5cb5aa8eae3a1c97fa Mon Sep 17 00:00:00 2001 From: Antoine Cellerier Date: Sat, 1 Apr 2006 17:28:29 +0000 Subject: [PATCH] Fix quotes arround inputs like "fake: option fake-file=thing.png" which should be "fake:" option "fake-file=thing.png" --- share/http/js/vlm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/http/js/vlm.js b/share/http/js/vlm.js index a89880e094..120fddc07f 100644 --- a/share/http/js/vlm.js +++ b/share/http/js/vlm.js @@ -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() -- 2.39.2