aboutsummaryrefslogtreecommitdiff
path: root/pmwiki.php
diff options
context:
space:
mode:
Diffstat (limited to 'pmwiki.php')
-rw-r--r--pmwiki.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/pmwiki.php b/pmwiki.php
index d528fcb3..685e3c12 100644
--- a/pmwiki.php
+++ b/pmwiki.php
@@ -2843,7 +2843,8 @@ function PmWikiAuth($pagename, $level, $authprompt=true, $since=0) {
## Split from PmWikiAuth to allow for recipes to call it
function PrintAuthForm($pagename) {
- global $FmtV, $AuthPromptFmt, $PageStartFmt, $PageEndFmt;
+ global $FmtV, $AuthPromptFmt, $PageStartFmt, $PageEndFmt, $AuthFormRespCode;
+ if(IsEnabled($AuthFormRespCode, 0)) http_response_code($AuthFormRespCode);
$postvars = '';
foreach($_POST as $k=>$v) {
if ($k == 'authpw' || $k == 'authid') continue;