Skip to content

Commit c5a480c

Browse files
author
Joel Wan
committed
error in regex expression for parsing @link
1 parent eac5ce2 commit c5a480c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{
2727
if (isset($_GET['attributeList'])) {
2828
$attArray = stripcslashes(urldecode($_GET['attributeList']));
29-
$attArray = trim(preg_replace('#^array\s*\(|\d\s\=\>\s*\'|\'\,\s*\)$#', '', $attArray));
29+
$attArray = trim(preg_replace('#^array\s*\(|\d+\s\=\>\s*\'|\'\,\s*\)$#', '', $attArray));
3030
$attributeList = preg_split('#\'\s*,\s*#', $attArray);
3131
}
3232
else
@@ -45,7 +45,7 @@
4545
$typeList = urldecode($_GET['typeList']);
4646
}
4747
$typeArray = trim($typeList);
48-
$typeArray = trim(preg_replace('#^array\s*\(|\d\s\=\>\s*\'|\'\,\s*\)$#', '', $typeArray));
48+
$typeArray = trim(preg_replace('#^array\s*\(|\d+\s\=\>\s*\'|\'\,\s*\)$#', '', $typeArray));
4949
$typeList = preg_split('#\'\s*,\s*#', $typeArray);
5050
for($i=0; $i<sizeof($typeList); $i++)
5151
{
@@ -66,7 +66,7 @@
6666
if (isset($_GET['classList']))
6767
{
6868
$classArray = stripcslashes(urldecode($_GET['classList']));
69-
$classArray = trim(preg_replace('#^array\s*\(|\d\s\=\>\s*\'|\'\,\s*\)$#', '', $classArray));
69+
$classArray = trim(preg_replace('#^array\s*\(|\d+\s\=\>\s*\'|\'\,\s*\)$#', '', $classArray));
7070
$classList = preg_split('#\'\s*,\s*#', $classArray);
7171
}
7272
else

0 commit comments

Comments
 (0)