summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);