mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-23 23:20:57 +01:00
Fix again for magic quotes.
This commit is contained in:
parent
7181634dcb
commit
e1f36dfe9a
7
post.php
7
post.php
@ -17,9 +17,10 @@
|
||||
function strip_array(&$var) {
|
||||
return is_array($var) ? array_map("strip_array", $var) : stripslashes($var);
|
||||
}
|
||||
strip_array($_SESSION);
|
||||
strip_array($_GET);
|
||||
strip_array($_POST);
|
||||
|
||||
$_SESSION = strip_array($_SESSION);
|
||||
$_GET = strip_array($_GET);
|
||||
$_POST = strip_array($_POST);
|
||||
}
|
||||
|
||||
if(isset($_POST['post'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user