[Slogger] bug in escaping quotation sign

vaesel at poczta.onet.pl vaesel at poczta.onet.pl
Mon Mar 13 12:26:32 EST 2006


there's a bug in escaping quotation signs in function 
replaceVars(str,escapeXMLflag) in sloggerPrefs.js:

this
	val = val.replace(/\'/g,"\\\'");
	val = val.replace(/\\/g,"\\\\");

produces error (too many escape signs - after first replace operation 
second one - doubles single backslashes before quotation sign), escaping 
should look like this:

	val = val.replace(/\\/g,"\\\\");
	val = val.replace(/'/g,"\\'");


More information about the Slogger mailing list