"Hashar" posted a comment on MediaWiki.r110001.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/110001#c30215

Commit summary for MediaWiki.r110001:

bug 33646 Badtitle error page now emits a 400 HTTP status.

Sending a 200 OK status on bad title, prevents mobile browsers to
actually now the page is an error page.

Tested using:
 curl -I http://localhost/wiki/\]\]
 curl -I http://localhost/wiki/Special:BadTitle

Hashar's comment:

> How about passing the context to BadTitleError so you don't have to use 
> $wgOut?

The idea was to keep the change as simple as possible to have it merged on live 
site ASAP. I have just duplicated the rest of Error exception which do not use 
Context. I guess that is because a Context object is not always available 
whereas wgOut is probably "always" available.



_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to