Revision: 1071
http://mrbs.svn.sourceforge.net/mrbs/?rev=1071&view=rev
Author: cimorrison
Date: 2009-03-25 09:33:26 +0000 (Wed, 25 Mar 2009)
Log Message:
-----------
Fixed a couple of other places where $HTTP_REFERER could be undefined (see
comment in Rev 1070)
Revision Links:
--------------
http://mrbs.svn.sourceforge.net/mrbs/?rev=1070&view=rev
Modified Paths:
--------------
mrbs/trunk/web/session_cookie.inc
mrbs/trunk/web/session_php.inc
Modified: mrbs/trunk/web/session_cookie.inc
===================================================================
--- mrbs/trunk/web/session_cookie.inc 2009-03-25 09:18:37 UTC (rev 1070)
+++ mrbs/trunk/web/session_cookie.inc 2009-03-25 09:33:26 UTC (rev 1071)
@@ -141,8 +141,11 @@
// We need to preserve the original calling page, so that it's there when
we eventually get
// to the TargetURL (especially if that's edit_entry.php). If this is the
first time through then $HTTP_REFERER holds
// the original caller. If this is the second time through we will have
stored it in $returl.
- echo "<input type=\"hidden\" name=\"returl\" value=\"" .
- htmlspecialchars((isset($returl)) ? $returl : $HTTP_REFERER) . "\">\n";
+ if (!isset($returl))
+ {
+ $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
+ }
+ echo "<input type=\"hidden\" name=\"returl\" value=\"" .
htmlspecialchars($returl) . "\">\n";
?>
<input type="hidden" name="TargetURL" value="<?php echo
htmlspecialchars($TargetURL) ?>">
<input type="hidden" name="Action" value="SetName">
Modified: mrbs/trunk/web/session_php.inc
===================================================================
--- mrbs/trunk/web/session_php.inc 2009-03-25 09:18:37 UTC (rev 1070)
+++ mrbs/trunk/web/session_php.inc 2009-03-25 09:33:26 UTC (rev 1071)
@@ -141,8 +141,11 @@
// We need to preserve the original calling page, so that it's there when
we eventually get
// to the TargetURL (especially if that's edit_entry.php). If this is the
first time through then $HTTP_REFERER holds
// the original caller. If this is the second time through we will have
stored it in $returl.
- echo "<input type=\"hidden\" name=\"returl\" value=\"" .
- htmlspecialchars((isset($returl)) ? $returl : $HTTP_REFERER) . "\">\n";
+ if (!isset($returl))
+ {
+ $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
+ }
+ echo "<input type=\"hidden\" name=\"returl\" value=\"" .
htmlspecialchars($returl) . "\">\n";
?>
<input type="hidden" name="TargetURL" value="<?php echo
htmlspecialchars($TargetURL) ?>">
<input type="hidden" name="Action" value="SetName">
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits