X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=93c32ad5c66573742be5913efc541e84cb55cbd8;hb=7efdf72a861430b2e437e31278c6eacfd4d622a0;hp=c2ffb64d242e70f108db455368826f2657745168;hpb=b895e8ea58501324022903810c67e778b2344779;p=mirrors%2FSokoMan.git
diff --git a/index.php b/index.php
index c2ffb64..93c32ad 100755
--- a/index.php
+++ b/index.php
@@ -624,7 +624,11 @@ class Sklad_UI {
$location = $this->html->internal_url($location).'?message='.urlencode($message);
header('Location: '.$location);
if($error) trigger_error($message);
- die("Location: $location");
+ $location=htmlspecialchars($location);
+ die(
+ "".
+ "Location: $location"
+ );
}
function safe_include($dir,$name,$vars=array(),$ext='.inc.php') {