Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
09fc61c0
Commit
09fc61c0
authored
Aug 10, 2004
by
Steven Wittens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
#9148
and
#8766
: Fix problem with using '%' in term names.
parent
9c1ccbbf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/taxonomy.module
modules/taxonomy.module
+2
-2
modules/taxonomy/taxonomy.module
modules/taxonomy/taxonomy.module
+2
-2
No files found.
modules/taxonomy.module
View file @
09fc61c0
...
...
@@ -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
);
}
...
...
modules/taxonomy/taxonomy.module
View file @
09fc61c0
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment