[Slogger] Problems with whitelist 2

Ken Schutte kschutte at mit.edu
Thu Mar 16 13:40:51 EST 2006


Just a few days ago someone pointed out a bug with escaping quote marks 
in variables... the latest version at kenschutte.com/slogger has that 
fixed, so maybe it would work...

Another thing that might help is to use:

sloggerGetVar("title").match(...

instead of "$title".  this might alleviate some of the problems with 
escaping special characters.

Ken


Grande Puffo wrote:
> Hi,
> 
> I have another problem with whitelist. It seems that, using in the 
> whitelist a criteria like:
> 
> "$title".match(/^Albums by/)
> 
> the filter doesn't save all those pages that present an apostrophe (') 
> in the title, es. "Albums by 2 Many DJ's"
> 
> I don't know java, so i'm asking: is there a way to filter out undesired 
> characters before the whitelist check? If so, what should I do?
> 
> As a sidenote, this should be useful also if i want to save files in 
> $url.txt format, as i suspect that my current inability to do so can be 
> caused by the presence of (:) in the URL
> 
> Thanks in advance!
> 
> 
> _______________________________________________
> Slogger mailing list
> Slogger at mozdev.org
> http://mozdev.org/mailman/listinfo/slogger


More information about the Slogger mailing list