X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=index.php;h=8f37200644000085749f7c776b3cf8c5e281608d;hb=b4c58cd09ff3251041d9cd6f946f7875608a132c;hp=6508a4d227068122180061b0127497130542c212;hpb=7bcd6b429b70cd0316fbac62b760af4ef706a25d;p=mirrors%2FSokoMan.git
diff --git a/index.php b/index.php
index 6508a4d..8f37200 100755
--- a/index.php
+++ b/index.php
@@ -148,7 +148,10 @@ class Sklad_HTML extends HTML {
Home
Assistants
@@ -222,7 +225,7 @@ EOF;
);
foreach($table as $id => $row) {
foreach($collapse as $link => $title)
- if(isset($table[$id][$link])) {
+ if(isset($table[$id][$link]) && isset($row[$title])) {
$type = @array_shift(preg_split('/_/', $link));
if($link != $title) unset($table[$id][$link]);
$table[$id][$title]=$this->link($row[$title], $type.'/'.$row[$link].'/');
@@ -622,7 +625,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') {