From: <var...@us...> - 2016-05-20 09:42:26
|
Revision: 9834 http://sourceforge.net/p/phpwiki/code/9834 Author: vargenau Date: 2016-05-20 09:42:24 +0000 (Fri, 20 May 2016) Log Message: ----------- Better is_localhost() function (allow IPv6, allow Windows IIS). Patch by Thierry Nabeth. Modified Paths: -------------- trunk/lib/stdlib.php trunk/pgsrc/ReleaseNotes Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2016-04-12 13:46:14 UTC (rev 9833) +++ trunk/lib/stdlib.php 2016-05-20 09:42:24 UTC (rev 9834) @@ -1950,7 +1950,7 @@ function is_localhost() { - return $_SERVER['SERVER_ADDR'] == '127.0.0.1'; + return in_array($_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')); } /** Modified: trunk/pgsrc/ReleaseNotes =================================================================== --- trunk/pgsrc/ReleaseNotes 2016-04-12 13:46:14 UTC (rev 9833) +++ trunk/pgsrc/ReleaseNotes 2016-05-20 09:42:24 UTC (rev 9834) @@ -1,4 +1,4 @@ -Date: Mon, 11 Apr 2016 13:51:27 +0000 +Date: Fri, 20 May 2016 11:39:47 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.5.5) Content-Type: application/x-phpwiki; pagename=ReleaseNotes; @@ -20,6 +20,7 @@ * ~HtmlConverter plugin: check file is encoded in UTF-8; ~HtmlConverter plugin allowed in Fusionforge * Valid HTML5 and CSS3 logos (in debug mode) * Add HTML 5 <main> <header> <footer> <nav> in all themes +* Better is_localhost() function (allow IPv6, allow Windows IIS). Patch by Thierry Nabeth. == 1.5.5 2015-12-11 Marc-Etienne Vargenau == This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |