use replace

This commit is contained in:
Christopher 2020-10-23 21:49:05 +02:00
parent 22b2447124
commit 25ca4168ed
1 changed files with 1 additions and 2 deletions

View File

@ -2,11 +2,10 @@
function clean($string)
{
$string = str_repeat("", "", $string);
$string = str_replace("", "", $string);
return preg_replace('#\\x1b[[][^A-Za-z]*[A-Za-z]#', '', $string);
}
if(isset($_SESSION['LOGIN']))
{
if($_SESSION['LOGIN'] == 'true')