From:             [EMAIL PROTECTED]
Operating system: Red Hat 7.1
PHP version:      4.0.6
PHP Bug Type:     Session related
Bug description:  Re: extra slash / auto appending session ID

>The extra slash is so that PHP is in compliance with 
>XHTML 1.0. 
>See http://www.w3.org/MarkUp/ for more information.
>Also, if this is causing your applications problems, 
>you may be designing them incorrectly.

Well, I think the slash placed by PHP in the end of the INPUT tag was
misinterpreted by Internet Explorer, but not. Below are two examples. The
first are links without the session ID appended by PHP. The second is the
same links with the session ID automatically appended by PHP. I think it
append the ID because the cookie was not avaliable (I don't know why) when
the page was loaded at the first time. When I reload the page, it works
fine. This occurs everytime when I open the site in my browser.

a) Without appended session ID:

1) <form action=main.php name=post method=post>
<input type=hidden name=hrefvars value=''>
</form>

2) <td colspan=3 align=center><a href='tools/redirect.php?key=8'><img
width="468" height="60" src='banners/metro_banner1.jpg'
border=0></a><br>&nbsp;</td>

3) <a href='http://www.abese.org' target='_blank'>see more</a>

4) <div align=justify>The most new option in electronic security. <a
href='main.php?run=articles&cur=2&key=28'>See more</a></div>.

5) <a href='tools/redirect.php?key=6'><img width="234" height="60"
src='banners/rent.gif' border=0></a><br><br>

<a href='tools/redirect.php?key=5'><img width="234" height="60"
src='banners/banner2.jpg' border=0></a><br><br>


b) With appended session ID by PHP:

1) <form action="main.php" name="post" method="post"><input type="hidden"
name="PHPSESSID" value="a5b911cf5f2c235d82f6c7af1e05f7b4" />
<input type="hidden" name="hrefvars" value=''>
</form>

2) <td colspan=3 align=center><a
href="'tools/redirect.php?key=8'pkey=ign=center&PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4">>idden
name=hrefvars value=''><><img width="468" height="60"
src='banners/metro_banner1.jpg' border=0></a><br>&nbsp;</td>

3) <a href='http://www.abese.org' target="'_blank'e.org'" >See more</a>

4) <div align=justify>The most new option in electronic security. <a
href="'main.php?run=artigos&cur=2&key=28'ronic&PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4"
>See more</a>.

5) <a
href="'tools/redirect.php?key=6'p?key=&PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4"><><img
width="234" height="60" src='banners/rent.gif' border=0></a><br><br>

6) <a
href="'tools/redirect.php?key=5'p?key=c='banners/&PHPSESSID=a5b911cf5f2c235d82f6c7af1e05f7b4">

<><img width="234" height="60" src='banners/banner2.jpg'
border=0></a><br><br>

The first append is correct, it have only that slash that I didn't knew
about. But some part of the html from it was placed over the second. As you
can see, it is making a mess in the resulting HTML. Are you sure this is a
bug in my application? :-)

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


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to