[pmwiki-users] 404 on Abort?

Mikael Nilsson mini at nada.kth.se
Mon Dec 4 12:27:53 CST 2006


Why doesn't pmwiki give 404 errors on Abort() ??

Like so:

function Abort($msg) {
  # exit pmwiki with an abort message
  header("HTTP/1.1 404 Not Found");     
  
  echo "<h3>PmWiki can't process your request</h3>
    <p>$msg</p><p>We are sorry for any inconvenience.</p>";
  exit;
}

I accidentally hit this when one of my java applets did some probing GET
requests under the PMwiki namespace (log4j was the problem), expecting a
404 on error.

Adding the above made everything  work.

/Mikael


-- 
Plus ça change, plus c'est la même chose





More information about the pmwiki-users mailing list