[prev in list] [next in list] [prev in thread] [next in thread]
List: privoxy-users
Subject: Re: [privoxy-users] Privoxy: default.filter: referrer removal - broken (double quotes)
From: Fabian Keil <fk () fabiankeil ! de>
Date: 2014-04-25 11:55:02
Message-ID: 20140425135502.735c3247 () fabiankeil ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
jmcgowan@inch.com wrote:
> The use of double quotes in a replacement will break
> Javascript code which appears in a double quoted string.
>
> THE default.filter item:
> ------------------------
> # Get rid of Javascript referrer tracking.
> # Test page: http://www.javascript-page.com/referrer.html
> #
> s|(?:\w+\.)+referrer|"Not Your Business!"|gisU
> ------------------------
>
> has a problem. At times the referrer text will be in a string
> such as one that is eval'ed or in an onclick="...referrer..."
> action.
>
> The use of the double quotes (or single quotes if this appears
> inside a single quoted string) can break the wrapping string.
>
> One option (that I use) is to use a string created without quotes,
> so I use:
>
> ------------------------------------------
> s|(?:\w+\.)+referrer|false.toString()|gisU
> ------------------------------------------
Thanks for the report. Fixed in CVS as suggested above.
> Why I will not use a soureforge maillist;
> -----------------------------------------
> I see that the proper way to report bugs is to give sourceforge my email
> address (or a temporary one) to subscribe.
FYI, we are likely to migrate away from SF in the near future,
for details see ijbswa-devel@.
Fabian
["signature.asc" (application/pgp-signature)]
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Ijbswa-users mailing list
Ijbswa-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ijbswa-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic