WebbServerProg/www/public/Moment-2/FeetBook/cleanData.php

18 lines
303 B
PHP
Raw Permalink Normal View History

2024-09-13 14:45:04 +00:00
2024-08-26 08:40:59 +00:00
<?php
2024-09-13 14:45:04 +00:00
function cleanData($data)
{
mb_internal_encoding("UTF-8");
2024-08-26 08:40:59 +00:00
2024-09-13 14:45:04 +00:00
if (!mb_check_encoding($data)) {
header('Location: start.php');
2024-08-26 08:40:59 +00:00
}
2024-09-13 14:45:04 +00:00
$data = strip_tags($data);
$data = htmlspecialchars($data);
$data = trim($data);
$data = stripslashes($data);
return $data;
}
2024-08-26 08:40:59 +00:00
?>