| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
| |
http://www.mediawiki.org --> https://www.mediawiki.org
Part 2
Change-Id: I3be61fe3dfb502cc20180486eb1a8016eac151df
|
|
|
|
|
|
|
| |
For $wgImgAuthUrlPathMap in img_auth.php
Bug: 57016
Change-Id: I874878322a91bf14091500223d3520861a1556bb
|
|
|
|
|
|
|
|
| |
* This adds a new $wgImgAuthUrlPathMap config variable
* Also fixed ImgAuthBeforeStream hook msg formatting
bug: 51136
Change-Id: I77528f92b20670e3b09adc79c49e62060f1614f3
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Follows-up I1343872de7, Ia533aedf63 and I2df2f80b81.
Also updated usage in text in documentation and the
installer LocalSettingsGenerator.
Most of them were handled by this regex:
- find: (require|include|require_once|include_once)\s*\(\s*(.+?)\s*\)\s*;$
- replace: $1 $2;
Change-Id: I6b38aad9a5149c9c43ce18bd8edbab14b8ce43fa
|
|
|
|
|
|
| |
declared so that IDE knows how to use it and initialized
Change-Id: I4841fd3f03220f837c981951f07c1c21ddbd76af
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
hphpc has been superseded by hhvm, so support for hphpc is no longer
needed.
* Continue to use Preprocessor_Hash under HipHop since it is still
faster under hhvm
* Keep $wgCompiledFiles for now, so that wikihiero doesn't give an error
before Ic9d1e795 is merged
* Migrate the run-server script and associated configuration file to
hhvm. Enable EnableStaticContentFromDisk since it doesn't seem
ridiculously inefficient at first glance. Run from $IP rather than
$IP/.. since hhvm is apparently not picky about sourcing files from
outside of the current directory.
Change-Id: Ic3e769f1fbad4f7ad26dd819406796fee48c6b45
|
|
|
|
| |
Change-Id: I8741b5b979e55f38a666961a16c387586a92410e
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fix up spaces in our function calls, we do not want spaces before a
comma and try to avoid multiple commas whenever possible.
Errors:
* No space found after comma in function call
* Space found before comma in function call
Change-Id: I51aec02016f742422fa60b92ad35ba3f0ef59ba3
|
|
|
|
|
|
|
| |
* Made thumb_handler.php "just work" in a way similar to img_auth.
It no longer needs any "handlerUrl" setting to be set.
Change-Id: I557ba1f94db3cef0f21f5c0e2b60d8e381ea3f96
|
|
|
|
|
|
| |
We can now do this since we finally switched to PHP 5.3 for MW 1.20 and get rid of the silly dirname(__FILE__) stuff :)
Change-Id: Id9b2c9cd2e678197aa81c78adced5d1d31ff57b1
|
|
|
|
|
|
|
| |
Doing this in steps of roughly 100 changes per commit, so that it remains
reviewable.
Change-Id: Ie349afa5c809c887c787c7c04c49c9dd3478ccac
|
|
|
|
|
|
| |
Also made file documentation more consistent.
Change-Id: I30e124514396f110a572467b94ca06cefd5f7b46
|
|
|
|
| |
Change-Id: Icc924785cdb394adc723666bf9f6a67e9d6a4d0d
|
|
|
|
| |
Change-Id: Ief2721ee6573a5e54a276c91de636d9e1a678b8b
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/111612
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110843
|
|
|
|
|
|
|
|
|
| |
show the informative error message used before that revision.
* Revert the change to the relevant message made in r102612: it is plain text, not wikitext, a format which does not support protocol-relative URLs.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/110822
|
|
|
|
|
|
|
| |
changes SVN likes to sprinkle in (easy to spot from the change list). Did not add SwiftFileBackend.php as it still is in development.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106752
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/106010
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/105330
|
|
|
|
|
|
|
| |
directory as the source file name. This avoids the assumption that the thumb URL starts with /thumb.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/105208
|
|
|
|
|
|
|
| |
altogether, using suggestion per CR.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/104216
|
|
|
|
|
|
|
|
|
|
| |
img_auth.php better.
Also update img_auth.php so it's abuse of $wg variables is done in a way that doesn't let "/*" action paths clobber it's handling.
This should theoretically fix bug 32486.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/104150
|
|
|
|
|
|
|
|
|
| |
* Factored main code into wfImageAuthMain()
* Made preg_match() for $name account for "page3-" type specifiers in the thumb name
* Code style cleanups
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/103738
|
|
|
|
|
|
|
| |
Fix return items
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/99926
|
|
|
|
|
|
|
|
|
| |
extensions use it afaict), leave wfStreamFile() as a b/c alias for now.
Yay less global functions, autoloading and less manual require()s.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/94427
|
|
|
|
|
|
|
| |
Apply Tims strpos -> strrpos fix, confirmed to work by bug reporter
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/91153
|
|
|
|
|
|
|
|
|
| |
* Moved most of the bug 28235 code out to a separate library class, since I was running out of distinct function names.
* Merged the QUERY_STRING and PATH_INFO security checks, since they are dealing with the exact same problem. Removed WebRequest::isQueryStringBad().
* Deal with img_auth.php by having it specify what extension it expects to be streaming out. This extension can then be compared with the extension that IE might detect.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89558
|
|
|
|
|
|
|
|
|
|
| |
This avoids blacklisting pretty much every api.php URL with a dot in it, due to extensions like "webm&smaxage=3600&maxage=3600&format=jsonfm" being detected. Such an extension is unlikely to be registered to a dangerous file type. The proposed regex matches all extensions registered in HKEY_CLASSES_ROOT on my Windows XP VM, but does not include the ampersand, so avoids matching multiple URL parameters.
* Fixed a logic error in WebRequest::isPathInfoBad() from r88883, which caused dangerous PATH_INFO strings to be allowed as long as QUERY_STRING was set.
* Refactored the query string checks in WebRequest and img_auth.php into a single new function: isQueryStringBad().
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89248
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Added the ability to compile extensions. The build process is bootstrapped by running MediaWiki in interpreted mode. Extension setup file inclusions are slightly modified in a way that makes them register themselves for compilation. Then the same LocalSettings.php uses the compiled extension setup file when the compiled binary runs.
* Tested with Cite and ParserFunctions. The code which lets you have an extensions directory in a place other than $IP/../extensions is untested.
* Simplified WebStart.php slightly by using a custom $_SERVER variable to mark compiled mode. It will break if you don't use the supplied server.conf, but that will break a lot of things so don't do that.
* Fixed the core web entry points to include WebStart.php in compiled mode instead of interpreted.
* Made the build directory configurable. This is mostly so that I can grep the source tree without seeing loads of generated C++.
* In server.conf, added a rewrite rule allowing a /wiki/$1 article path.
* Removed server.conf log file location "/dev/stdout", breaks when you switch user
* Disable static content cache, breaks horribly when you set SourceRoot to a directory containing 7GB of files.
* Rewrote the run-server script in PHP, mostly to support the configurable build directory feature.
* Added an option to the run-server script to allow running in interpreted (hphpi) mode.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/89166
|
|
|
|
|
|
|
|
| |
* Fix for bug 28639: user object instance cache pollution
* Release notes formatting tweak.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/87482
|
|
|
|
|
|
|
| |
bug 28235, since URLs can have more than one question mark in them.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/86027
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/85844
|
|
|
|
|
|
|
|
|
| |
people who want to use protected images on hosts with sadly mis-shapen PHPs (e.g. GoDaddy) can.
* Mangle PATH_INFO handler in WebRequest so that all the relevant bits are in a (couple of) static functions.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/81363
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/81347
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/78253
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/70873
|
|
|
|
|
|
|
| |
CGI mode. Use with RewriteRule ^/w/images/(.*)$ /w/img_auth.php?path=bell-style
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/65652
|
|
|
|
|
|
|
| |
Efficiency measure suggested by ans-fox.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/57699
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/56152
|
|
|
|
|
|
|
|
|
| |
The localization code here is really ugly with weird things like call_user_func_array() all over the place, and there are bugs with escaping for log entries and such.
Tried to rebuild all the localization files, but rebuildLanguage.php doesn't seem to consider the messages as "unknown". Have removed from English and qqq.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/56051
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://bugzilla.wikimedia.org/show_bug.cgi?id=19646
1. Localize img_auth.php using core messages
2. Reorder checks to make sense (and eliminate redundancy)n
3. Add hook 'ImgAuthBeforeStream' to allow custom checking
4. Add globals wgImgAuthDetails,
5. Move all "wfDebugLog" into the rejection functions
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/55800
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/52751
|
|
|
|
|
|
|
| |
and install-utils.inc
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/48658
|
|
|
|
|
|
|
| |
This is a global search and replace of NS_IMAGE and NS_IMAGE_TALK with NS_FILE and NS_FILE_TALK respectively in all core files, excluding those already updated in step 1 (r44004).
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/44121
|
|
|
|
|
|
|
|
|
|
|
|
| |
extensions."
Uses $dir in extension files, and assumes that it remains unchanged in require_once( 'maintenance/commandLine.inc' ).
In fact, it is likely that '$dir' will be set when setting up command-line, as some extensions will use the same var.
Recommended fix: Use $CentralAuth_dir, $EmailPage_dir, etc.
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/44056
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/43987
|
|
|
|
|
|
|
|
|
|
|
| |
script-containing uploads, by:
1) Requiring a session token before streaming files out via Special:Undelete
2) Restricting img_auth.php to private wikis only (its intended use case)
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/43661
|
|
|
|
| |
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/27149
|
|
|
|
|
|
|
| |
* (bug 10756) img_auth.php will now refuse logged-out requests when there is no whitelist, rather than allowing them through
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/24609
|