diff --git a/modules/taxonomy.module b/modules/taxonomy.module
index f426f09a1692fe563823bb83b58365b9ae452058..56714971fb8bfc43611678dc197f31551f94f711 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 f426f09a1692fe563823bb83b58365b9ae452058..56714971fb8bfc43611678dc197f31551f94f711 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);