Tracker: Bugs

5 Unknown variable $forwarded_proto in strings.php - ID: 2388423
Last Update: Comment added ( pdontthink )

Using the latest SVN version from trunk
($Id: strings.php 13336 2008-11-26 02:56:42Z pdontthink $)
I received an error about unknown variable
$forwarded_proto in line 515 of strings.php.

When I inserted the following code fragment the
error went away, but I'm not sure if this is the right
solution, may be $is_secure_connection can replace this:

if (!sqgetGlobalVar('HTTP_X_FORWARDED_PROTO', $forwarded_proto,
SQ_SERVER))
$forwarded_proto = '';


Frank Behrens ( fbehrens ) - 2008-12-04 12:31

5

Closed

Fixed

Nobody/Anonymous

None

Produces PHP errors

Public


Comments ( 3 )

Date: 2008-12-05 07:15
Sender: pdontthinkProject AdminAccepting Donations

Thanks for the feedback!


Date: 2008-12-05 07:12
Sender: fbehrens

I tested the trunk r13349 and can confirm, that the bug is fixed. Thanks
for your fast response!



Date: 2008-12-04 21:42
Sender: pdontthinkProject AdminAccepting Donations

Thank you for the report (especially since it also applies to the stable
branch 1.4.x). A fix has been committed just now, and we'd really
appreciate it if you can test it (instead of your fix). Either get the
code from SVN or find the patch here:

http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/trunk/squirrelmail/functions/strings.php?r1=13336&r2=13348&view=patch

The patch for STABLE is here:

http://squirrelmail.svn.sourceforge.net/viewvc/squirrelmail/branches/SM-1_4-STABLE/squirrelmail/functions/strings.php?r1=13342&r2=13347&view=patch



Attached File

No Files Currently Attached

Changes ( 7 )

Field Old Value Date By
status_id Open 2008-12-05 07:15 pdontthink
close_date - 2008-12-05 07:15 pdontthink
status_id Pending 2008-12-05 07:12 fbehrens
close_date 2008-12-04 21:42 2008-12-05 07:12 fbehrens
resolution_id None 2008-12-04 21:42 pdontthink
close_date - 2008-12-04 21:42 pdontthink
status_id Open 2008-12-04 21:42 pdontthink