svn: /pear2/Pyrus/trunk/src/Pyrus/DER/ ObjectIdentifier.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Sun, 28 Feb 2010 16:54:16 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/src/Pyrus/DER/ ObjectIdentifier.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9218@lists.php.net to get a copy of this message | ||
dufuz Sun, 28 Feb 2010 16:54:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295584
Log:
Fix the number regex to make sure the algo can't contain any characters.
Changed paths:
U pear2/Pyrus/trunk/src/Pyrus/DER/ObjectIdentifier.php
Modified: pear2/Pyrus/trunk/src/Pyrus/DER/ObjectIdentifier.php
===================================================================
--- pear2/Pyrus/trunk/src/Pyrus/DER/ObjectIdentifier.php 2010-02-28 15:14:24 UTC (rev 295583)
+++ pear2/Pyrus/trunk/src/Pyrus/DER/ObjectIdentifier.php 2010-02-28 16:54:16 UTC (rev 295584)
@@ -62,7 +62,7 @@
$value = explode('.', $value);
foreach ($value as $val) {
- if (!preg_match('/[0-9]+/', $val)) {
+ if (!preg_match('/^[0-9]+$/', $val)) {
throw new Exception('Object Identifier must be a period-delimited string of
numbers');
}
}