bugfix nginx config

This commit is contained in:
nativemad
2018-10-26 18:21:18 +02:00
parent 8ea03bd645
commit b5772b2651
2 changed files with 5 additions and 4 deletions

View File

@@ -2,8 +2,9 @@
function clean($str) {
$search = array('&' , '"' , "'" , '<' , '>' );
$replace = array('&amp;', '&quot;', '&#39;', '&lt;', '&gt;' );
$str = str_replace($search, $replace, $str);
return $str;
$str = str_replace($search, $replace, $str);
$strf = htmlspecialchars($str, ENT_QUOTES, 'UTF-8');
return $strf;
}
if(isset($_REQUEST['logout'])){