svn: /phd/trunk/phpdotnet/phd/Package/IDE/ Functions.php
| From: | Moacir de Oliveira Miranda Júnior | Date: | Wed, 07 Apr 2010 02:31:03 +0000 |
| Subject: | svn: /phd/trunk/phpdotnet/phd/Package/IDE/ Functions.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6325@lists.php.net to get a copy of this message | ||
moacir Wed, 07 Apr 2010 02:31:03 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297600
Log:
Fixing bug #51482 - PhD_IDE generates invalid XML
+ Added htmlspecialchars in the return of the readContents() function
Bug: http://bugs.php.net/51482 (Open) PhD_IDE generates
invalid XML
Changed paths:
U phd/trunk/phpdotnet/phd/Package/IDE/Functions.php
Modified: phd/trunk/phpdotnet/phd/Package/IDE/Functions.php
===================================================================
--- phd/trunk/phpdotnet/phd/Package/IDE/Functions.php 2010-04-07 01:27:52 UTC (rev 297599)
+++ phd/trunk/phpdotnet/phd/Package/IDE/Functions.php 2010-04-07 02:31:03 UTC (rev 297600)
@@ -408,7 +408,7 @@
$reader->read();
//Skipping the title
if ($reader->nodeType === \XMLReader::ELEMENT && $reader->name !=
'title') {
- $content .= trim($reader->readContent());
+ $content .= trim(htmlspecialchars($reader->readContent(), ENT_QUOTES,
'UTF-8'));
}
} while ($reader->name != 'refsect1');
$content .= "</description>\n</return>\n";
@@ -431,7 +431,7 @@
$reader->read();
//Skipping the title
if ($reader->nodeType === \XMLReader::ELEMENT && $reader->name !=
'title') {
- $content .= trim($reader->readContent());
+ $content .= trim(htmlspecialchars($reader->readContent(), ENT_QUOTES,
'UTF-8'));
}
} while ($reader->name != $name);
$content .= "</description>\n</note>\n";