php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21311 strip_tags strips everything after <!DOCTYPE
Submitted: 2002-12-31 07:32 UTC Modified: 2003-03-11 11:13 UTC
From: work at sopnet dot ch Assigned:
Status: Closed Package: Strings related
PHP Version: 4.3.0 OS: WinXP
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: work at sopnet dot ch
New email:
PHP Version: OS:

 

 [2002-12-31 07:32 UTC] work at sopnet dot ch
$str1 = "Hello <!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\"> World.";
$str1 = strip_tags($str1);

After this $str1 contains only 'Hello' and not 'Hello World.'


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-31 09:19 UTC] rasmus@php.net
Fixed in CVS
 [2003-01-03 04:32 UTC] devilkin at gmx dot net
Was this fixed in the 4.4 or in 4.3?
 [2003-01-03 04:33 UTC] derick@php.net
Trick questions:
When was PHP 4.3.0 released?
When did you report this bug?
 [2003-01-03 06:12 UTC] work at sopnet dot ch
Oh, funny new year questions...

>When was PHP 4.3.0 released?
27-Dec-2002
>When did you report this bug?
31-Dec-2002

-----

Download of latest Stable (4.3.x-dev) does not help.
In which version from http://snaps.php.net, Stable (4.3.x-dev) or Latest CVS (4.4.x-dev), is it fixed?

Please can somebody answer clearly?
Thanks, Claudio
 [2003-01-03 06:22 UTC] derick@php.net
All fixes go to the development snapshot unless the commiter thinks his fix should go to the stable branch too, so it's only in 4.4.0-dev right now. Because I think it should also be in the branch (4.3.1-dev) I'm going to merge this fix; it should be in both the stable and dev snapshot when they are regenerated.
 [2003-03-11 10:58 UTC] laurent dot bonnin at lemel dot fr
Same problem width PHP 4.3.1
 [2003-03-11 11:13 UTC] sniper@php.net
For everyone: The fix will be in next _normal_ release
of PHP. Be it 4.3.2 or 4.3.3. We can't be sure ever
that there aren't any 'emergency' releases in between.

Try reading the NEWS file every once and a while..

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC