summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-02-08 11:08:28 +0000
committerDries Buytaert <dries@buytaert.net>2004-02-08 11:08:28 +0000
commitd0ffb4794ad03c537f9de561f7de2953fa933b92 (patch)
treea0dedbf2ccdffaa269e96d2a50db75f3abd4b098
parent46140081faba852baa6a66b552148359d5799477 (diff)
downloadbrdo-d0ffb4794ad03c537f9de561f7de2953fa933b92.tar.gz
brdo-d0ffb4794ad03c537f9de561f7de2953fa933b92.tar.bz2
- Refined the regex to validate the input.
-rw-r--r--modules/taxonomy.module3
-rw-r--r--modules/taxonomy/taxonomy.module3
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index b57be1347..68639d4ab 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -723,8 +723,7 @@ function taxonomy_page() {
$taxonomy->str_tids = check_query(arg(3));
$taxonomy->tids = explode(",", $taxonomy->str_tids);
- if (ereg("^[0-9,]+[^,]$", $taxonomy->str_tids)) {
-
+ if (ereg("^([0-9],){0,}[0-9]+$", $taxonomy->str_tids)) {
switch (arg(1)) {
case "feed":
taxonomy_feed($taxonomy);
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module
index b57be1347..68639d4ab 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -723,8 +723,7 @@ function taxonomy_page() {
$taxonomy->str_tids = check_query(arg(3));
$taxonomy->tids = explode(",", $taxonomy->str_tids);
- if (ereg("^[0-9,]+[^,]$", $taxonomy->str_tids)) {
-
+ if (ereg("^([0-9],){0,}[0-9]+$", $taxonomy->str_tids)) {
switch (arg(1)) {
case "feed":
taxonomy_feed($taxonomy);