]> git.sesse.net Git - vlc/commitdiff
Fix browsing when file/folder name is using a quote (').
authorAntoine Cellerier <dionoea@videolan.org>
Wed, 15 Mar 2006 13:23:31 +0000 (13:23 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Wed, 15 Mar 2006 13:23:31 +0000 (13:23 +0000)
share/http/js/functions.js

index 7b694db78a8fc83c5e9f33a12f6b8148fd92cf64..f0b2bd1b2ee48ec570dd9d70fb42156cc5206a6f 100644 (file)
@@ -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; }