Revision: 1070
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1070&view=rev
Author:   cimorrison
Date:     2009-03-25 09:18:37 +0000 (Wed, 25 Mar 2009)

Log Message:
-----------
Fixed problem caused by an undefined variable when running with E_NOTICE errors 
turned on.   (The undefined variable notice message turns up in the returl 
parameter in the query string which is then passed to the header("Location: ") 
redirect call which then results in a "Warning: Header may not contain more 
than a single header, new line detected" error message).

Modified Paths:
--------------
    mrbs/trunk/web/edit_entry.php

Modified: mrbs/trunk/web/edit_entry.php
===================================================================
--- mrbs/trunk/web/edit_entry.php       2009-03-25 08:47:35 UTC (rev 1069)
+++ mrbs/trunk/web/edit_entry.php       2009-03-25 09:18:37 UTC (rev 1070)
@@ -837,8 +837,12 @@
     // go back to the page we started at (rather than going to the default 
view).  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.
+    if (!isset($returl))
+    {
+      $returl = isset($HTTP_REFERER) ? $HTTP_REFERER : "";
+    }
     ?>
-    <input type="hidden" name="returl" value="<?php echo 
htmlspecialchars((isset($returl)) ? $returl : ($HTTP_REFERER)) ?>">
+    <input type="hidden" name="returl" value="<?php echo 
htmlspecialchars($returl) ?>">
     <!--input type="hidden" name="room_id" value="<?php echo $room_id?>"-->
     <input type="hidden" name="create_by" value="<?php echo $create_by?>">
     <input type="hidden" name="rep_id" value="<?php echo $rep_id?>">


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

Reply via email to