cvs: phpdoc /scripts checkent.php
| From: | Gabor Hojtsy | Date: | Fri, 04 Jan 2002 16:06:51 +0000 |
| Subject: | cvs: phpdoc /scripts checkent.php | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969340732@lists.php.net to get a copy of this message | ||
goba Fri Jan 4 11:06:51 2002 EDT
Modified files:
/phpdoc/scripts checkent.php
Log:
Check for used quote and not hardcoded "
Index: phpdoc/scripts/checkent.php
diff -u phpdoc/scripts/checkent.php:1.2 phpdoc/scripts/checkent.php:1.3
--- phpdoc/scripts/checkent.php:1.2 Fri Jan 4 09:41:54 2002
+++ phpdoc/scripts/checkent.php Fri Jan 4 11:06:51 2002
@@ -55,7 +55,7 @@
// Find entity names and URLs
$schemes_preg = "(" . join("|", $schemes) . ")";
-preg_match_all("/<!ENTITY\s+(\S+)\s+([\"'])(({$schemes_preg})[^\"]+)\\2\s*>/U",
+preg_match_all("/<!ENTITY\s+(\S+)\s+([\"'])(({$schemes_preg})[^\\2]+)\\2\s*>/U",
$file_string, $entities_found);
// These are the useful parts