[ ijbswa-Bugs-3429848 ] better implementation of check-decoded-url

SourceForge.net <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Bugs item #3429848, was opened at 2011-10-28 12:36
Message generated for change (Tracker Item Submitted) made by jwz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3429848&group_id=11118

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: funct: filtering
Group: version 3.0.17
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jamie Zawinski (jwz)
Assigned to: Nobody/Anonymous (nobody)
Summary: better implementation of check-decoded-url

Initial Comment:
Here is a better implementation of "fast-redirects{check-decoded-url}" that actually works properly with sites like Facebook.

The old implementation took the entire URL; decoded it; and then looked for the last http:.  That doesn't work with URL redirectors done the way most modern sites do it, e.g.,

http://www.facebook.com/l.php?u=http%3A%2F%2F_real_url_&h=_other_crap_

which would assume the &h stuff was part of the URL.

This implementation first splits the URL at ? or &, then decodes each segment, and takes the last URL found in any of those.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=111118&aid=3429848&group_id=11118

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.