Commit graph

15 commits

Author SHA1 Message Date
Domas Mituzas
8aabcc03d1 Be less anal about entry points, class definitions do no harm to anyone, defined() is expensive 2006-01-14 11:04:04 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Niklas Laxström
72bfc638b4 Missing variable declarations 2006-01-10 18:44:39 +00:00
Brion Vibber
96a988f7ec * Protect against spoofing of X-Forwarded-For header 2006-01-07 21:44:10 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Ævar Arnfjörð Bjarmason
1d15461a57 Code review!
* Don't start a new scope with if defined 'MEDIAWIKI...
2006-01-07 12:31:39 +00:00
Tim Starling
e03fdc5ac5 Lazy initialisation of wgProxyList, no flip required 2005-12-06 13:24:47 +00:00
Tim Starling
55671d7040 Faster IP blocks. Requires schema change. 2005-12-01 10:37:47 +00:00
Tim Starling
5594172806 PHP 5 compatibility 2005-11-01 07:47:21 +00:00
Tim Starling
9260c3b7ca Deferred initialisation of $wgIP, because it's potentially slow, especially if and when we add the 200 NTL proxies to the trusted XFF list. I was hoping to avoid initialisation altogether for anonymous page views, but that turns out to be difficult because of user_newtalk. It is, however, avoided for action=raw. Tested page view, newtalk, IP registration in history and recentchanges, IP block, autoblock and Special:Version.
Also moved the old proxy scan code from EditPage.php to a more appropriate location in ProxyTools.php.
2005-09-05 02:22:20 +00:00
Antoine Musso
157861bc31 fix some issues with phpdoc 2005-07-05 21:22:25 +00:00
Tim Starling
1b19057db3 oops, committed from wrong branch, this is the fixed version 2005-03-31 10:39:15 +00:00
Tim Starling
50f2612218 fixed bug 2005-03-31 10:37:54 +00:00
Tim Starling
ce4f1221f1 Adding some validation for IP determination via XFF headers, in preparation for adding ISP proxies to the trusted proxy list, which may occasionally give invalid XFF headers 2005-03-31 09:10:25 +00:00