Pridan meta redirect pro presmerovani v pripade, ze hlavicky uz odesly...
authorThomas Mudrunka <tomas@mudrunka.cz>
Fri, 19 Aug 2011 23:27:21 +0000 (01:27 +0200)
committerThomas Mudrunka <tomas@mudrunka.cz>
Fri, 19 Aug 2011 23:27:21 +0000 (01:27 +0200)
index.php

index c2ffb64d242e70f108db455368826f2657745168..93c32ad5c66573742be5913efc541e84cb55cbd8 100755 (executable)
--- 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: <a href='$location'>$location</a>");
+               $location=htmlspecialchars($location);
+               die(
+                       "<meta http-equiv='refresh' content='0; url=$location'>".
+                       "Location: <a href='$location'>$location</a>"
+               );
        }
 
        function safe_include($dir,$name,$vars=array(),$ext='.inc.php') {
This page took 0.109909 seconds and 4 git commands to generate.