should fix issues on IIS
This commit is contained in:
parent
dd652e4cc5
commit
e59d7bc707
@ -123,6 +123,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function system_prepare_iis() {
|
||||||
|
if (!@$_SERVER['REQUEST_URI']) {
|
||||||
|
$_SERVER['REQUEST_URI'] = substr($_SERVER['PHP_SELF'],1 );
|
||||||
|
if (isset($_SERVER['QUERY_STRING'])) {
|
||||||
|
$_SERVER['REQUEST_URI'].='?'.$_SERVER['QUERY_STRING'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
function system_init_action_params() {
|
function system_init_action_params() {
|
||||||
|
|
||||||
@ -143,6 +152,7 @@
|
|||||||
|
|
||||||
system_sanitizequery();
|
system_sanitizequery();
|
||||||
system_unregister_globals();
|
system_unregister_globals();
|
||||||
|
system_prepare_iis();
|
||||||
|
|
||||||
$GLOBALS['fpdb'] =& new FPDB;
|
$GLOBALS['fpdb'] =& new FPDB;
|
||||||
|
|
||||||
|
@ -271,6 +271,8 @@
|
|||||||
|
|
||||||
$flatpress['themeurl'] = $themeurl;
|
$flatpress['themeurl'] = $themeurl;
|
||||||
|
|
||||||
|
$flatpress['params'] = $fp_params;
|
||||||
|
|
||||||
$flatpress_upper = array_change_key_case($flatpress, CASE_UPPER);
|
$flatpress_upper = array_change_key_case($flatpress, CASE_UPPER);
|
||||||
|
|
||||||
$flatpress = array_merge($flatpress, $flatpress_upper);
|
$flatpress = array_merge($flatpress, $flatpress_upper);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<form id="commentform" method="post"
|
<form id="commentform" method="post"
|
||||||
action="{$smarty.server.REQUEST_URI|escape:'html'}#commentform"
|
action="{$flatpress.params.entry|link:comments_link}#commentform"
|
||||||
enctype="multipart/form-data">
|
enctype="multipart/form-data">
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user