No special chars in chan URL

This commit is contained in:
Nicolas A. Tonne
2015-02-12 22:27:59 +01:00
parent bdb40bfc7e
commit 0b57508a2b
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
if(isset($_GET['chan'])) header('Location: '.$_GET['chan']);
$list = explode("/", htmlspecialchars(strtolower($_SERVER["REQUEST_URI"])));
if($list[1]==""||!isset($list[1])||count($list)<=1){$list="";include('php/nochan.php');die();}
else $list=$list[1];
else $list=preg_replace('/[^\da-z]/i', '', urldecode($list[1]));
?>
<html xmlns="http://www.w3.org/1999/xhtml"