fixed injection issue (bug 333034)
git-svn-id: svn://10.0.0.236/trunk@193778 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -31,5 +31,5 @@ function readCookie(name)
|
||||
/* Someone should make this a js builtin */
|
||||
function htmlEntities(str)
|
||||
{
|
||||
return str.replace('&','&').replace('<','<').replace('>','>').replace('"','"').replace('+',' ');
|
||||
return str.replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/\+/g,' ');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user