From:             adrosetint at hotmail dot com
Operating system: Windows
PHP version:      5.1.6
PHP Bug Type:     *URL Functions
Bug description:  output_add_rewrite_var failed on Url address beggining with 
http://

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 bug report at http://bugs.php.net/?id=38843&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38843&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38843&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38843&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38843&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38843&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38843&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38843&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38843&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38843&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38843&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38843&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38843&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38843&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38843&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38843&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38843&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38843&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38843&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38843&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38843&r=mysqlcfg

Reply via email to