]> git.mxchange.org Git - friendica.git/commit
If the header returns an absolute path as a redirect, don't simply append the path...
authorMatthew Exon <git.mexon@spamgourmet.com>
Mon, 29 Jul 2013 02:11:08 +0000 (10:11 +0800)
committerMatthew Exon <git.mexon@spamgourmet.com>
Mon, 29 Jul 2013 02:15:39 +0000 (10:15 +0800)
commiteb9bd03ef86e0c453aa034fc9b33dcde278056fc
tree8028c78fa0cab4624d399f9091588cfb4dc219c2
parent04681618da523e894562d92ca559b735fbf924ad
If the header returns an absolute path as a redirect, don't simply append the path to the old URL, remove the old absolute path first.

For example, original URL:

http://www.theregister.co.uk/2013/07/28/birmingham_uni_car_cracker_muzzled_by_lords/print.html

Redirect from header:

/Print/2013/07/28/birmingham_uni_car_cracker_muzzled_by_lords/

Incorrect result:

http://www.theregister.co.uk/2013/07/28/birmingham_uni_car_cracker_muzzled_by_lords/print.html/Print/2013/07/28/birmingham_uni_car_cracker_muzzled_by_lords/

Correct result after this patch:

http://www.theregister.co.uk/Print/2013/07/28/birmingham_uni_car_cracker_muzzled_by_lords/
include/network.php