#38843 [Com]: output_add_rewrite_var failed on Url address beggining with http://
| From: | aldertb at xs4all dot nl | Date: | Thu, 30 Nov 2006 20:02:46 +0000 |
| Subject: | #38843 [Com]: output_add_rewrite_var failed on Url address beggining with http:// | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969374509@lists.php.net to get a copy of this message | ||
ID: 38843
Comment by: aldertb at xs4all dot nl
Reported By: adrosetint at hotmail dot com
Status: Open
Bug Type: Documentation problem
Operating System: Windows
PHP Version: 5.1.6
New Comment:
First, captcha's aren't working when cookies disabled (developping
setting :P)
But what if someone posts in your forum, here look this product:
http://mywebshop.tld/lawn-mower-p-89.html
and someone clicks it while
having cookies disabled, he will lose his cart and/or is login...
We can also strip the domain name including http://
(http://webshop.tld), and make it a relative url...
After that the buffer_rewrite will include a sessionid.
Btw, php 4.3.9. does a check if the var isn't set already while 5.0.4.
(my local xampp version) doesn't. This was a lill' confusing. I will
mention this in the online manual...
Best regards,
Aldert Berends
The Netherlands
Previous Comments:
------------------------------------------------------------------------
[2006-09-15 12:50:17] tony2001@php.net
Reclassified as docu problem.
URL-Rewriter does not change absolute URLs intentionally.
------------------------------------------------------------------------
[2006-09-15 12:36:17] adrosetint at hotmail dot com
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>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38843&edit=1