php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11175 SpecialChars handling
Submitted: 2001-05-29 14:09 UTC Modified: 2001-06-18 09:20 UTC
From: bate at bate dot de Assigned:
Status: Closed Package: Strings related
PHP Version: 4.0.5 OS: Linux/FreeBSD
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: bate at bate dot de
New email:
PHP Version: OS:

 

 [2001-05-29 14:09 UTC] bate at bate dot de
the functions
htmlentities() and htmlspecialchars()
removes from the euro char (?) some special chars.

Example:

I have a form and i type my euro char in.
after a post i handle it so.
$formstr = htmlentities($formstr);

output of $formstr returns
€ but thats wrong correct are €

workaround str_replace("€","€",$formstr)


Bat[e]

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-29 14:10 UTC] bate at bate dot de
F**** you script doestn display my full types.

str_replace("\&\a\m\p\;\#\8\3\6\4\;","€"

Maybe thats helps. :)
 [2001-05-29 14:11 UTC] bate at bate dot de
Oh no... :( sorry but just your report script displays it wrong after first report.

Regards Bat[e]
 [2001-06-08 02:40 UTC] bate at bate dot de
I checked the Source and found the Problem:

./ext/standart/
-> string.c
Line 2512: php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br />\n",7,return_value);

Correct this please to
Line 2512: php_char_to_str((*str)->value.str.val,(*str)->value.str.len,'\n',"<br>\n",7,return_value);

 [2001-06-08 02:50 UTC] bate at bate dot de
Sorry for the mistake but my last comment was for the wrong Bug report. :) posted it again for bugreport with id 11347.


Thx Bat[e]
 [2001-06-18 09:20 UTC] sniper@php.net
this is fixed in CVS. Try latest snapshot from http://snaps.php.net/

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Sep 23 16:03:36 2021 UTC