|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11031 XML parser do not let use ']' in CDATA string
Submitted: 2001-05-22 17:18 UTC Modified: 2001-05-22 19:26 UTC
From: Mykolas at Labas dot Com Assigned:
Status: Not a bug Package: *XML functions
PHP Version: 4.0.4pl1 OS: Linux
Private report: No CVE-ID: None
 [2001-05-22 17:18 UTC] Mykolas at Labas dot Com
Extract from data I giving to parse:

<LongDesc><![CDATA[HP OmniBook XE3 Cel600 13 HPA 64/7 W[AN]]]></LongDesc> 

Parser executes data function two times:
for data: "HP OmniBook XE3 Cel600 13 HPA 64/7 W[AN" 
and for data: "]"

It happens only in case of using [] in the data string.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-22 19:26 UTC]
This is not a bug in PHP, but rather a property of the XML parser (which is external).
You need to escape your [ and ] 's

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon May 29 02:03:39 2023 UTC