From 4cb727972180aca5163d652d306183b2fabdf11c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 21 Feb 2004 19:16:07 +0000
Subject: [PATCH] - Patch by Gerhard: fixed incorrect regex in the taxonomy
 module.

---
 modules/taxonomy.module          | 2 +-
 modules/taxonomy/taxonomy.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index f426f09a1692..56714971fb8b 100644
--- a/modules/taxonomy.module
+++ b/modules/taxonomy.module
@@ -725,7 +725,7 @@ function taxonomy_page() {
   $taxonomy->str_tids = check_query(arg(3));
   $taxonomy->tids = explode(",", $taxonomy->str_tids);
 
-  if (ereg("^([0-9],){0,}[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 f426f09a1692..56714971fb8b 100644
--- a/modules/taxonomy/taxonomy.module
+++ b/modules/taxonomy/taxonomy.module
@@ -725,7 +725,7 @@ function taxonomy_page() {
   $taxonomy->str_tids = check_query(arg(3));
   $taxonomy->tids = explode(",", $taxonomy->str_tids);
 
-  if (ereg("^([0-9],){0,}[0-9]+$", $taxonomy->str_tids)) {
+  if (ereg("^([0-9]+,){0,}[0-9]+$", $taxonomy->str_tids)) {
     switch (arg(1)) {
       case "feed":
         taxonomy_feed($taxonomy);
-- 
GitLab