Changeset:
        ebe0e8bd02a1
        
https://sourceforge.net/p/mrbs/hg-code/ci/ebe0e8bd02a1b90309e7df9126c85b1cdf2c2152
Author:
        Campbell Morrison <[email protected]>
Date:
        Wed Mar 29 18:22:44 2017 +0100
Log message:

Made the return URL an absolute instead of relative location.  See SF Bugs #383.

diffstat:

 web/edit_entry_handler.php |  5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 6960bb033647 -r ebe0e8bd02a1 web/edit_entry_handler.php
--- a/web/edit_entry_handler.php        Tue Mar 28 17:24:39 2017 +0100
+++ b/web/edit_entry_handler.php        Wed Mar 29 18:22:44 2017 +0100
@@ -604,6 +604,11 @@
   }
 }
 
+// Turn the location into an absolute location, to keep IE8 happy.
+$scheme = (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] !== 'off')) ? 
'https' : 'http';
+$host = $HTTP_HOST;
+$dir = dirname($PHP_SELF);
+$returl = "$scheme://$host$dir/$returl";
 
 // If we haven't been given a sensible date then get out of here and don't try 
and make a booking
 if (!isset($start_day) || !isset($start_month) || !isset($start_year) || 
!checkdate($start_month, $start_day, $start_year))

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to