[Phpfreechat-svn] SF.net SVN: phpfreechat: [749] trunk/src/client/proxy.php.tpl
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-11 11:18:03
|
Revision: 749 http://svn.sourceforge.net/phpfreechat/?rev=749&view=rev Author: kerphi Date: 2006-09-11 04:17:57 -0700 (Mon, 11 Sep 2006) Log Message: ----------- [en] Bug fix: on some servers (free.fr) the realpath() php function is not returning FALSE when the file is missing. [fr] Bug fix: sur certains serveurs (free.fr) la fonction php realpath() ne retourne pas FALSE lorsque le fichier cible n'existe pas. Modified Paths: -------------- trunk/src/client/proxy.php.tpl Modified: trunk/src/client/proxy.php.tpl =================================================================== --- trunk/src/client/proxy.php.tpl 2006-09-10 20:47:57 UTC (rev 748) +++ trunk/src/client/proxy.php.tpl 2006-09-11 11:17:57 UTC (rev 749) @@ -13,7 +13,7 @@ foreach($allowedpath as $ap) { $f = realpath($ap."/".$page); - if ($f !== FALSE) $files[] = $f; + if ($f !== FALSE && file_exists($f)) $files[] = $f; } $found = ""; for( $i = 0; $i < count($allowedpath) && $found == ""; $i++) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |