[pmwiki-devel] Problem with Hg...

Dominique Faure dominique.faure at gmail.com
Sun Mar 18 10:06:04 CDT 2007


On 3/18/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
[...]
>
> Since it only happens in IE, the problem is likely that IE
> shows "friendly error messages" instead of the text of the page
> returned by the webserver.  I've yet to find a reliable way to
> get IE to always display the page contents instead of the
> "friendly error message", so the only recourse is to have PmWiki
> return an incorrect HTTP Header whenever IE is in use.
>
> Thus:
>
>   if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE'))
>     $PageNotFoundHeaderFmt = 'HTTP/1.1 200 Ok';
>
> Actually, since a large number of recipes and customizations seem
> to need to be able to detect the presence of an IE browser...
> perhaps we should define a core $IsMSIE variable that gets
> set to true whenever we detect that Internet Explorer is
> being used.  Then the above would simply become:
>
>   if ($IsMSIE) $PageNotFoundHeaderFmt = 'HTTP/1.1 200 Ok';
>

A generic solution?

http://pmichaud.com/pipermail/pmwiki-users/2007-January/037813.html

Dom



More information about the pmwiki-devel mailing list