[ phpwiki-Bugs-1438442 ] Unitialised variable reference in config.php

"SourceForge.net" <[email protected]> Fri, 24 Feb 2006 18:12:18 -0800
Newsgroups gmane.comp.web.wiki.phpwiki.bugs
Message-ID <[email protected]>
Bugs item #1438442, was opened at 2006-02-25 15:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=1438442&group_id=6121

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: version 1.3.x (experimental)
Group: PHP error
Status: Open
Resolution: None
Priority: 5
Submitted By: Matt Brown (mattgbrown)
Assigned to: Nobody/Anonymous (nobody)
Summary: Unitialised variable reference in config.php

Initial Comment:
The guessing_lang function makes a reference to a
potentially uninitialised variable ($accept) on line
156 when the users browser does not send an
Accept-Language header (wget is an exampel of a browser
that does not do this). 

The attached patch initialises the $accept variable to
false to avoid this problem.


This patch can be found as r55 in the WLUG svn
repository at:
http://svn.wlug.org.nz/viewcvs?root=wiki&rev=55&view=rev

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106121&aid=1438442&group_id=6121


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642