php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10833 Hyperlink tag <a> when split on multiple lines, session ids are not propagated
Submitted: 2001-05-12 17:24 UTC Modified: 2002-02-28 17:51 UTC
From: admin at adari dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.5 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: admin at adari dot net
New email:
PHP Version: OS:

 

 [2001-05-12 17:24 UTC] admin at adari dot net
This applicable for browsers that don't allow cookies:

The following is not working:
<a class="subMenu"
	href="<?php if (!isset($currentMenu))
			echo $smUrlRefs[$key];
                else echo "../" . $smUrlRefs[$key]; ?>">
		Menu </a>

But if href is on the same line as <a> tag, it works:
<a class="subMenu" href="<?php if (!isset($currentMenu)) 				echo
$smUrlRefs[$key];
		else echo "../" . $smUrlRefs[$key]; ?>">
		Menu </a>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-10 05:05 UTC] sas@php.net
Could you give a snapshot a try?

http://snaps.php.net/

The scanner is supposed to ignore whitespace.
 [2001-08-06 08:48 UTC] sniper@php.net
No feedback. And the latest CVS works just fine
on this kind of urls.

--Jani

 [2002-02-28 16:43 UTC] chris dot kilhams at totalise dot co dot uk
This problem exists also in 4.0.6

'<a' and 'href="url"' must not be split onto different lines or the sid will not automatically be appended.

<a href="page.php"> will work

<a 
href="page.php"> will not work
 [2002-02-28 17:51 UTC] mfischer@php.net
Is it worth the hassle to extend the (post?)parse to recognize this (slow down if parse would also recognize this).

Clearly documenting what's possinle and what not would be better imho.
 [2004-01-26 19:14 UTC] cruisin79 at hotmail dot com
how do you split a hyperlink so that it can go to two frames on my webpage?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC