Commit 09fc61c0 authored by Steven Wittens's avatar Steven Wittens

- #9148 and #8766: Fix problem with using '%' in term names.

parent 9c1ccbbf
......@@ -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);
}
......
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment