php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68516 [pt_BR] Wrong Page encoding
Submitted: 2014-11-27 11:48 UTC Modified: 2015-08-04 13:14 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: ti dot rcampanari at gmail dot com Assigned: ae (profile)
Status: Closed Package: Translation problem
PHP Version: 5.6.3 OS:
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: ti dot rcampanari at gmail dot com
New email:
PHP Version: OS:

 

 [2014-11-27 11:48 UTC] ti dot rcampanari at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.urldecode
---


1. <?php
2. $a = split ('&amp;', $querystring);
3. $i = 0;
4. while ($i &lt; count ($a)) {
5.   $b = split ('=', $a [$i]);
6.   echo 'Value for parameter ', htmlspecialchars (urldecode ($b [0])),
7.        ' is ', htmlspecialchars (urldecode ($b [1])), "&lt;BR>";
8.   $i++;
9. }
10. ?>

On line [4], '&lt' should be '<'


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-11-28 20:04 UTC] sobak@php.net
-Package: Documentation problem +Package: Translation problem
 [2014-11-28 20:04 UTC] sobak@php.net
Thanks for your report. However, example in English version is different than you quoted. Did you mean any translation (this code seems to be very old - it uses split())? If so, please specify language version. Currently, I've categorized this bug as "translation problem".
 [2014-12-01 14:21 UTC] ti dot rcampanari at gmail dot com
You're right @sobak, it is on pt-BR translation.
 [2014-12-27 20:28 UTC] sobak@php.net
-Summary: Wrong Page encoding +Summary: [pt_BR] Wrong Page encoding
 [2015-08-04 13:14 UTC] ae@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: ae
 [2015-08-04 13:14 UTC] ae@php.net
Translation updated.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 13:01:29 2024 UTC