mirror of https://github.com/BOINC/boinc.git
Work around for servers where PHP magic_quotes_gpc is disabled
svn path=/trunk/boinc/; revision=13581
This commit is contained in:
parent
ae628d1fcd
commit
b8c0ef8815
|
@ -614,6 +614,9 @@ function get_str($name, $optional=false) {
|
|||
if (!$x && !$optional) {
|
||||
error_page("missing or bad parameter: $name");
|
||||
}
|
||||
if (get_magic_quotes_gpc() == 0) {
|
||||
$x = addslashes($x);
|
||||
}
|
||||
return $x;
|
||||
}
|
||||
|
||||
|
@ -632,6 +635,9 @@ function post_str($name, $optional=false) {
|
|||
if (!$x && !$optional) {
|
||||
error_page("missing or bad parameter: $name");
|
||||
}
|
||||
if (get_magic_quotes_gpc() == 0) {
|
||||
$x = addslashes($x);
|
||||
}
|
||||
return $x;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue