From: Antoine Cellerier Date: Wed, 15 Mar 2006 13:23:31 +0000 (+0000) Subject: Fix browsing when file/folder name is using a quote ('). X-Git-Tag: 0.9.0-test0~11899 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;ds=sidebyside;h=bbb8a1ecfc7d82bad838f787fcaedaf0d9590e55;p=vlc Fix browsing when file/folder name is using a quote ('). --- diff --git a/share/http/js/functions.js b/share/http/js/functions.js index 7b694db78a..f0b2bd1b2e 100644 --- a/share/http/js/functions.js +++ b/share/http/js/functions.js @@ -219,7 +219,7 @@ function check_and_replace_int( id, val ) } function addslashes( str ){ return str.replace(/\'/g, '\\\''); } -function escapebackslashes( str ){ return str.replace(/\\/g, '\\\\'); } +function escapebackslashes( str ){ return str.replace(/\\[^']/g, '\\\\'); } function disable( id ){ document.getElementById( id ).disabled = true; }