diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-10 14:50:53 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2004-08-10 14:50:53 +0000 |
commit | 09fc61c0652c8603689c2bf02a6e3de8fc1b699a (patch) | |
tree | c350403a5bf5c46c5e2c6b884353cbb08c8e2d77 /modules | |
parent | 9c1ccbbf5497e071bb17e554bb2711954bb0b32b (diff) | |
download | brdo-09fc61c0652c8603689c2bf02a6e3de8fc1b699a.tar.gz brdo-09fc61c0652c8603689c2bf02a6e3de8fc1b699a.tar.bz2 |
- #9148 and #8766: Fix problem with using '%' in term names.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy.module | 4 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 62281eb23..079e936a1 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -720,7 +720,7 @@ function _taxonomy_depth($depth, $graphic = '--') { function _taxonomy_prepare_update($data) { foreach ($data as $key => $value) { - $q[] = "$key = '". check_query($value) ."'"; + $q[] = "$key = '". str_replace('%', '%%', check_query($value)) ."'"; } $result = implode(', ', $q); return $result; @@ -732,7 +732,7 @@ function _taxonomy_prepare_insert($data, $stage) { } else { foreach (array_values($data) as $value) { - $q[] = "'". check_query($value) ."'"; + $q[] = "'". str_replace('%', '%%', check_query($value)) ."'"; } $result = implode(', ', $q); } diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 62281eb23..079e936a1 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -720,7 +720,7 @@ function _taxonomy_depth($depth, $graphic = '--') { function _taxonomy_prepare_update($data) { foreach ($data as $key => $value) { - $q[] = "$key = '". check_query($value) ."'"; + $q[] = "$key = '". str_replace('%', '%%', check_query($value)) ."'"; } $result = implode(', ', $q); return $result; @@ -732,7 +732,7 @@ function _taxonomy_prepare_insert($data, $stage) { } else { foreach (array_values($data) as $value) { - $q[] = "'". check_query($value) ."'"; + $q[] = "'". str_replace('%', '%%', check_query($value)) ."'"; } $result = implode(', ', $q); } |