[php-blog-cvs] r48 - branches/0.8/include
A reliable, secure & extensible PHP blog | Not mainstream since 2002
Brought to you by:
garvinhicking,
jhermanns
From: Sebastian N. at B. <no...@sh...> - 2005-04-27 17:05:24
|
Author: nohn Date: 2005-04-25 13:43:40 +0200 (Mon, 25 Apr 2005) New Revision: 48 Modified: branches/0.8/include/compat.inc.php Log: Backport: Attempt to fix IIS compatibility Modified: branches/0.8/include/compat.inc.php =================================================================== --- branches/0.8/include/compat.inc.php 2005-04-25 11:23:02 UTC (rev 47) +++ branches/0.8/include/compat.inc.php 2005-04-25 11:43:40 UTC (rev 48) @@ -106,6 +106,11 @@ $serendipity['POST'] = &$_POST['serendipity']; $serendipity['COOKIE'] = &$_COOKIE['serendipity']; +// Attempt to fix IIS compatibility +if (empty($_SERVER['REQUEST_URI'])) { + $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING']; +} + // Some security issues if (isset($serendipity['GET']['searchTerm'])) { $serendipity['GET']['searchTerm'] = htmlspecialchars(strip_tags($serendipity['GET']['searchTerm'])); |