php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15021 Format error!
Submitted: 2002-01-13 17:54 UTC Modified: 2002-01-14 06:54 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: frank dot liebelt at acst dot de Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.1.1 OS: Linux / Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: frank dot liebelt at acst dot de
New email:
PHP Version: OS:

 

 [2002-01-13 17:54 UTC] frank dot liebelt at acst dot de
Hi,

we are 6 people with different versions from 3.07 to 4.1.1 an we have all the same problem. In our code we have the following line:
echo "http://www.irdendwas.pol/lk.php?id=1&currency=EUR";
But the output looks like:
http://www.irdendwas.pol/lk.php?id=1?cy=EUR
We think this is a bug in PHP. When we change id with currency all wend fine:
echo "http://www.irdendwas.pol/lk.php?currency=EUR&id=1";
It looks like &curren will be interpreted as what ever!



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-13 17:59 UTC] derick@php.net
Not a bug, you should always use &amp; in <a href sections. (Read the HTTP specs if you really want to :)

Derick
 [2002-01-13 18:00 UTC] torben@php.net
Just to add to this, check the list of HTML entities. 
&curren; is the 'currency' sign entity.

Torben

 [2002-01-13 18:20 UTC] frank dot liebelt at acst dot de
Sorry,
but we have?t known that &curren; is a HTML entitie!

Thanks!
 [2002-01-14 06:54 UTC] hholzgra@php.net
although using '&amp;' as delimiter instead of '&'
this still qualifies as a browser error IMHO,
as the entity to replace is "&curren;", not
"&curren" without a semi colon 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 17:01:33 2024 UTC