Last modified: 2011-03-13 18:06:35 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 T24415, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22415 - On last line of index.php, please add exit();
On last line of index.php, please add exit();
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Lowest minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-07 02:11 UTC by Adam D
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

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


Attachments

Description Adam D 2010-02-07 02:11:21 UTC
Hello,
I have recently had problems with my MediaWiki where my web host has set up Apache to automatically append a JavaScript to the end of every PHP script, which breaks my wiki's JavaScript and CSS (generated by MediaWiki:Common.js, etc).
To resolve this, I have added exit(); to the last line of my wiki's index.php, which prevents the counter script being appended, but I would like to ask if exit(); can be added to the last line of index.php in the next SVN revision of MediaWiki, after $mediaWiki->restInPeace() is called.
Thanks.
Comment 1 Chad H. 2010-04-15 21:33:23 UTC
Resolving WONTFIX.

This is an issue related to local configuration and your host's setup. For what it's worth, removing a host's injected ads (most likely) violates your Terms of Service. In addition, there are other entry points (api.php, thumb.php) would need exit() calls as well. Finally, this may (unlikely, but may...) break things.

As a general recommendation, we do not suggest running MediaWiki on free hosts, as they typically do not have the resources required to run MediaWiki. Of course if you're happy with your host you're welcome to continue using them, but you will need to maintain your exit() patch yourself.

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


Navigation
Links