|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-15 12:50 UTC] tony2001@php.net
[2006-11-30 20:02 UTC] aldertb at xs4all dot nl
[2007-01-20 22:52 UTC] nlopess@php.net
[2020-02-07 06:10 UTC] phpdocbot@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 15:00:02 2025 UTC |
Description: ------------ function.output_add_rewrite_var fails with explicit URLs, i.e. URL's that explicilty include domain. But works with Implicit domains... e.g. those that do not contain the domain, but is implied to be the current domain. I realise the benefits, it doesn't alter the links to external domains, however could this function not realise if the URL is of the current domain, + where URLs are explicitly writen. I've included two urls, the first type ( implicit ) works :) the second type ( explicit ) fails. Is this a bug or a feature? Reproduce code: --------------- <?php output_add_rewrite_var('auth', '412e11'); ?> <a href="link.php">Click Here</a> <a href="http://this.site.net/link.php">Click Here</a> Expected result: ---------------- <a href="link.php?auth=412e11">Click Here</a> <a href="http://this.site.net/link.php?auth=412e11">Click Here</a> Actual result: -------------- <a href="link.php?auth=412e11">Click Here</a> <a href="http://this.site.net/link.php">Click Here</a>