ID:               50308
 User updated by:  Dormilich at netscape dot net
 Reported By:      Dormilich at netscape dot net
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Linux
 PHP Version:      5.2.11
 New Comment:

this can be worked around by adding another attribute after the href
attribute:
<a href="site.php?id=this" title="currently"/>


Previous Comments:
------------------------------------------------------------------------

[2009-11-27 01:57:18] Dormilich at netscape dot net

Description:
------------
I created a Suckerfish Dropdown Menu via XSLT, which contains empty 
anchor elements (<a href="…"/>). If Cookies are disabled the Session 
ID should be appended at the end of the href attribute value (URL) but

it is appended after the closing slash of the element, rendering the 
XHTML invalid.

However, "normal" hyperlinks (<a href="…">link text</a>) are not 
affected.


Configure Command:
'./configure' '--prefix=/usr/local/php5' '--with-config-file-
path=/etc/php5' '--with-openssl' '--with-xsl' '--with-xmlrpc' '--
enable-mbstring' '--enable-mbregex' '--enable-wddx' '--with-
gettext=/usr' '--with-mysql=/usr/local/mysql' '--with-
mysqli=/usr/local/mysql/bin/mysql_config' '--with-mcrypt=/usr/lib64/' 
'--with-apache=../apache_current/' '--with-freetype-dir=/usr/local' '-
-with-t1lib=/usr/local' '--with-gd' '--enable-gd-native-ttf' '--with-
jpeg-dir=/usr/local' '--enable-exif' '--with-png-dir=/usr/local/lib' 
'--with-zlib' '--with-curl' '--enable-bcmath' '--enable-calendar' '--
enable-discard-path' '--enable-shared' '--enable-force-cgi-redirect' 
'--with-pdo-mysql=/usr/local/mysql' '--enable-soap'

Reproduce code:
---------------
<a href="site.php?id=this"/>

Expected result:
----------------
<a href="site.php?id=this&amp;PHPSESSID=3d…d4"/>

Actual result:
--------------
<a href="site.php?id=this"/&amp;PHPSESSID=3d…d4>


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


-- 
Edit this bug report at http://bugs.php.net/?id=50308&edit=1

Reply via email to