Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
81565fda
Commit
81565fda
authored
Dec 19, 2003
by
Kjartan Mannes
Browse files
- Fixing magic_gpc fix.
parent
e06cdc57
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
81565fda
...
...
@@ -144,14 +144,16 @@ function throttle($type, $rate) {
function
_fix_gpc_magic
(
&
$item
,
$key
)
{
if
(
is_array
(
$item
))
{
array_walk
(
$item
,
'_fix_gpc_magic_array'
);
array_walk
(
$item
,
'_fix_gpc_magic'
);
}
else
{
$item
=
stripslashes
(
$i
);
}
$item
=
stripslashes
(
$i
);
}
function
fix_gpc_magic
()
{
static
$fixed
=
false
;
if
(
$fixed
&&
ini_get
(
"magic_quotes_gpc"
))
{
if
(
!
$fixed
&&
ini_get
(
"magic_quotes_gpc"
))
{
array_walk
(
$_GET
,
'_fix_gpc_magic'
);
array_walk
(
$_POST
,
'_fix_gpc_magic'
);
array_walk
(
$_COOKIE
,
'_fix_gpc_magic'
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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