Last modified: 2014-06-23 16:06:59 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T51273, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49273 - Closing commented text at the beginning of a line (due to ModSecurity configuration)
Closing commented text at the beginning of a line (due to ModSecurity configu...
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.21.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-06 20:33 UTC by Rob Kam
Modified: 2014-06-23 16:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Rob Kam 2013-06-06 20:33:25 UTC
If the first three characters on a line are --> doing Show preview takes the browser to a 400 Bad Request page. On MediaWiki MediaWiki 1.21.1 and PHP 5.3.22 (cgi-fcgi).
Comment 1 Andre Klapper 2013-06-07 09:52:36 UTC
Thanks for taking the time to report this!

I've tried on https://test2.wikipedia.org/wiki/Bug49273 and cannot reproduce the problem. Do you have a specific testcase? Is this on a publicly accessible Mediawiki installation (URL?)?
Comment 2 Rob Kam 2013-06-07 10:50:09 UTC
http://www.sdiy.info
Comment 3 Andre Klapper 2013-06-07 13:00:29 UTC
Confirming with account testing1 (password is the same without the 1) on http://www.sdiy.info/w/index.php?title=Foo&action=submit

JAVASCRIPT CONSOLE OUTPUT:
Error: The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
Source File: http://www.sdiy.info/w/index.php?title=Foo&action=submit
Line: 0


Could you please check your PHP error log? See http://www.mediawiki.org/wiki/Manual:How_to_debug
Also see explanation in http://stackoverflow.com/questions/11633162/character-encoding-not-declared-in-html-document why this potentially happens.
Comment 4 Rob Kam 2013-06-12 09:28:27 UTC
There is no entry in the PHP error log for when it happens.
Comment 5 Rob Kam 2013-08-04 14:28:30 UTC
Turns out it only needs -- at the start of a line.
Comment 6 Rob Kam 2013-08-20 22:19:17 UTC
The site host tells me it was caused by ModSecurity.
Comment 7 Andre Klapper 2013-08-21 08:59:30 UTC
Ah, thanks for sharing the reason, and glad you found out!
Closing as INVALID here as there's not much that can be done about it in the MediaWiki code.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links