Commit 1839dc50 authored by Antoine Cellerier's avatar Antoine Cellerier

Don't duplicate backslashes in VLM HTTP interface anymore. Could someone confirm that this works?

parent 8a55a20a
......@@ -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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment