php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6669 htmlspecialchars misbehaving
Submitted: 2000-09-12 01:59 UTC Modified: 2000-09-12 02:05 UTC
From: chr at tv2i dot dk Assigned:
Status: Closed Package: *Function Specific
PHP Version: 4.0.2 OS: Linux 2.2.12-20
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: chr at tv2i dot dk
New email:
PHP Version: OS:

 

 [2000-09-12 01:59 UTC] chr at tv2i dot dk
The function call 

    htmlspecialchars("'") 

returns 

    '

instead of the expected

    '

I believe this is a bug rather than a documentation problem, because there is generally do need to escape ' in HTML.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-12 02:05 UTC] joey@php.net
#1) This is fixed in 4.0.3/CVS.
#2) This is currently being (heateadly) discussed,
as to what the proper behavior of this function.
Rest assured, if there IS a change made, it will
be because there is a good reason for it.

Thanks for your report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 10:01:28 2024 UTC