lhc/web/wiklou.git
13 years agodoxygen: add support for EXCLUDE keyword
Antoine Musso [Sat, 5 Feb 2011 13:54:26 +0000 (13:54 +0000)]
doxygen: add support for EXCLUDE keyword

13 years agominor typo in comment
Antoine Musso [Sat, 5 Feb 2011 12:48:26 +0000 (12:48 +0000)]
minor typo in comment

Thanks to Solitarius for the report (by email)

13 years ago(bug 26548) Make multi-paged documents (PDFs) work with ForeignAPIRepo (aka InstantCo...
Brian Wolff [Sat, 5 Feb 2011 08:49:48 +0000 (08:49 +0000)]
(bug 26548) Make multi-paged documents (PDFs) work with ForeignAPIRepo (aka InstantCommons).

This adds a new parameter to the query=imageinfo (and query=stashimageinfo) that takes rendering
parameters other than width and height. This could be page for pdf's and DjVu, or thumbtime for ogg's, etc.
Syntax is &iiurlparam=param1=value1|param2=value2|... I'm not sure if that really fits with the normal way
of doing things in the api, but couldn't think of anything better since the parameters are arbitrary.

I also noticed that some of the pre-existing error codes in query=imageinfo seem to duplicate the module prefix. I'm
not sure what the deal with that is, but i did not follow that example in the new error codes i introduced.

Note: In order for this to work, both the foreign repo and the local wiki have to be running this code.

13 years ago(follow up r79706 to address CR comments) Simplify some of the logic in LinksUpdate.php
Brian Wolff [Sat, 5 Feb 2011 02:16:13 +0000 (02:16 +0000)]
(follow up r79706 to address CR comments) Simplify some of the logic in LinksUpdate.php

Make it so that by default, the parser consdiers categories to have a sortkey of "" unless
specified otherwise. Before, the parser said the sortkey was the page name, and then in LinksUpdate
we reset the sortkey (prefix) to "" if it was the same as the page name.

This way, the parser uniformly outputs the sortkey prefix, instead of a mix between prefix or pagename.

It should be noted, this changes the output of api.php?action=parse for categories that do not have
a sortkey.

13 years ago* (bug 27083) Extension info for Special:Version can include '...' as a special value...
Brion Vibber [Sat, 5 Feb 2011 00:58:07 +0000 (00:58 +0000)]
* (bug 27083) Extension info for Special:Version can include '...' as a special value which is turned into the localized 'others' used for Special:Version author lists.

13 years agoThese table renames aren't needed for an upgrade since Pg has these as reserved names...
Mark A. Hershberger [Fri, 4 Feb 2011 21:44:24 +0000 (21:44 +0000)]
These table renames aren't needed for an upgrade since Pg has these as reserved names anyway.

13 years agoCurrently, we do not send last-modified headers for the RC if patrolling is in use...
Brian Wolff [Fri, 4 Feb 2011 21:38:54 +0000 (21:38 +0000)]
Currently, we do not send last-modified headers for the RC if patrolling is in use, since that messes with the way we determine if the RC has changed. Change it to not send those headers only if using RC patrol, and the current user can
see patrol marks.

As an aside, Special:Recentchanges does not show new page patrol marks
if $wgUseNPPatrol = true, but $wgUseRCPatrol=false (it only shows them if
both are true), where Special:newpages shows patrol stuff whenever $wgUseNPPatrol
is true, regardless of $wgUseRCPatrol. Which is a tad weird, but whatever.

13 years agoRemove unused interwiki.sql like I said I would in r66013
Chad Horohoe [Fri, 4 Feb 2011 21:12:02 +0000 (21:12 +0000)]
Remove unused interwiki.sql like I said I would in r66013

13 years agoSuppress warnings on reading interwiki.list in case permissions or something else...
Chad Horohoe [Fri, 4 Feb 2011 21:10:02 +0000 (21:10 +0000)]
Suppress warnings on reading interwiki.list in case permissions or something else makes it not work.
Tweak message since we no longer read the .sql file.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 4 Feb 2011 21:04:49 +0000 (21:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-04 20:33:00 UTC)

13 years agoMore uppercase trues
Chad Horohoe [Fri, 4 Feb 2011 21:00:17 +0000 (21:00 +0000)]
More uppercase trues

13 years agolowercase a few more t/f
Chad Horohoe [Fri, 4 Feb 2011 20:54:43 +0000 (20:54 +0000)]
lowercase a few more t/f

13 years ago(bug 19751) Filesystem is now checked during image undeletion
Bryan Tong Minh [Fri, 4 Feb 2011 20:54:11 +0000 (20:54 +0000)]
(bug 19751) Filesystem is now checked during image undeletion
* FSRepo::storeBatch() now does an sha1 check unless SKIP_VALIDATION flag is set
* Introduced Status::$success in addition to Status::$successcount
** FSRepo::storeBatch() now logs success/failure in this variable
* LocalFileRestoreBatch now aborts on failure in FSRepo::storeBatch() and cleans up the already copied files
** Introduced FSRepo::cleanupBatch() for this purpose
* SpecialUndelete now aborts if LocalFile::restore() gives a fatal

13 years agoRm selectDB from Postgres, doesn't do anything
Chad Horohoe [Fri, 4 Feb 2011 20:52:55 +0000 (20:52 +0000)]
Rm selectDB from Postgres, doesn't do anything

13 years agochange from double quote to single quote to avoid double-encoding by htmlspecialchars()
Mark A. Hershberger [Fri, 4 Feb 2011 20:05:05 +0000 (20:05 +0000)]
change from double quote to single quote to avoid double-encoding by htmlspecialchars()

13 years agoUse wfMessage() instead of wfMsgGetKey()
Alexandre Emsenhuber [Fri, 4 Feb 2011 16:52:26 +0000 (16:52 +0000)]
Use wfMessage() instead of wfMsgGetKey()

13 years agoAllow parameter to be passed with an array in the first parameter (as other wfMsg...
Alexandre Emsenhuber [Fri, 4 Feb 2011 16:47:24 +0000 (16:47 +0000)]
Allow parameter to be passed with an array in the first parameter (as other wfMsg*() functions)

13 years agouser scripts & styles are lowercase skin; + using 'vector' as example instead.
Krinkle [Fri, 4 Feb 2011 16:44:07 +0000 (16:44 +0000)]
user scripts & styles are lowercase skin; + using 'vector' as example instead.

13 years agoRelease notes for r81524
Happy-melon [Fri, 4 Feb 2011 16:41:31 +0000 (16:41 +0000)]
Release notes for r81524

13 years agoFollow-up r64670 (bug22929): cleaner implementation of security for script (and poten...
Happy-melon [Fri, 4 Feb 2011 16:39:17 +0000 (16:39 +0000)]
Follow-up r64670 (bug22929): cleaner implementation of security for script (and potentially CSS) files.  ResourceLoader *already* knows where each module has come from, so all we need to do is filter them in OutputPage according to the desired level of 'trustworthiness'.

TODO:
* Are there instances where we might want to restrict CSS as well as JS?
* Would a $wg config option and/or user preference and/or index.php GET parameter to limit inclusion be useful?
* Can we deprecate any of the existing $wg config options?
* What's going on with the duplicated code between OutputPage and SkinTemplate?

13 years agoRevert r73198 (adding exclusing option to runJobs.php). Per CR, this should use a...
Chad Horohoe [Fri, 4 Feb 2011 15:03:59 +0000 (15:03 +0000)]
Revert r73198 (adding exclusing option to runJobs.php). Per CR, this should use a real pool counter.

13 years agoCompletely remove support for legacy style skins. All legacy skinning options are...
Daniel Friesen [Fri, 4 Feb 2011 04:18:05 +0000 (04:18 +0000)]
Completely remove support for legacy style skins. All legacy skinning options are now part of a SkinLegacy/LegacySkinTemplate pair that inherits from the normal SkinTemplate setup. Also ported our three built in skins to use the new legacy classes. ( ;) if you want to kill legacy skins now, you only have to svn rm 4 files)

13 years agomore clear
Krinkle [Fri, 4 Feb 2011 03:30:50 +0000 (03:30 +0000)]
more clear

13 years agoadding that Vector shipped with 1.16 in 2010
Krinkle [Fri, 4 Feb 2011 03:30:14 +0000 (03:30 +0000)]
adding that Vector shipped with 1.16 in 2010

13 years agoMaking a start with $.jsMessage. A more flexible way for messages. Supports grouping...
Krinkle [Fri, 4 Feb 2011 02:17:14 +0000 (02:17 +0000)]
Making a start with $.jsMessage. A more flexible way for messages. Supports grouping them and making the replacing of previous messages into option (the current jsMsg() function always replaces older messages. Time has shown that there is need for the ability to show older messages as well and grouping to avoid different scripts from erasing or clearing eachother's output (current Commons and a few other wikis have created similar functions to enable keeping previous messages)
* See also bug 26888. Not resolving the bug yet, this plugins needs a little more testing and should then be called from within mw.util.jsMessage with some wiki specific things.

Examples:

// Show a simple message in the default group
$.jsMessage( {
message: 'Hello',
target: 'mw-js-message'
} );

// Add a new message this time stating the defaults
$.jsMessage( {
message: 'World',
group: 'default',
replace: false,
target: 'mw-js-message'
} );

// Post a new message, replacing the previous ones
$.jsMessage( {
message: 'New',
group: 'default',
replace: true,
target: 'mw-js-message'
} );

// Add a messages in a new group (groups separated by a line)
$.jsMessage( {
message: 'A new group',
group: 'something',
target: 'mw-js-message'
} );

// Clear the default group
// See code comments for more info
$.jsMessage( {
message: '',
replace: true,
target: 'mw-js-message'
} );

// Clear the 'something'-group
// Since this leaves no visible groups, the main box will hide (slideUp) right after
$.jsMessage( {
message: '',
group: 'something',
replace: true,
target: 'mw-js-message'
} );

If testing goes well, mw.util.jsMsg(message, className, replace) will call
$.jsMessage( { message: message, group: className, replace: replace, target: $.jsMessage(ge' );
So it's more a backend plugin, not used directly by core modules.
But this way extensions or third party sites can easily re-use this plugin and/or create multiple message boxes
on one page, by calling $.jsMessageNew and giving an id and location for it on the page.

13 years agoUse the right query parameter.
Mark A. Hershberger [Fri, 4 Feb 2011 00:40:33 +0000 (00:40 +0000)]
Use the right query parameter.

13 years agore r81495 — you know, I've completely forgotten why I wanted to return a status objec...
Mark A. Hershberger [Fri, 4 Feb 2011 00:21:59 +0000 (00:21 +0000)]
re r81495 — you know, I've completely forgotten why I wanted to return a status object.  Fix that and not the busted status message.

13 years agoRevert r70270; per CR comments.
Happy-melon [Fri, 4 Feb 2011 00:20:14 +0000 (00:20 +0000)]
Revert r70270; per CR comments.

13 years ago* make canCreateAccounts() return Status Objects instead of boolean
Mark A. Hershberger [Fri, 4 Feb 2011 00:15:44 +0000 (00:15 +0000)]
* make canCreateAccounts() return Status Objects instead of boolean
* re-use openConnection to test the ability of the user to connect.

13 years agoFew more return types
Sam Reed [Thu, 3 Feb 2011 23:09:42 +0000 (23:09 +0000)]
Few more return types

13 years agoFixup r81467
Sam Reed [Thu, 3 Feb 2011 22:06:10 +0000 (22:06 +0000)]
Fixup r81467

13 years agorm unrelated changes from r81486
Chad Horohoe [Thu, 3 Feb 2011 21:02:36 +0000 (21:02 +0000)]
rm unrelated changes from r81486

13 years agoRemove now unused enableBackend()
Chad Horohoe [Thu, 3 Feb 2011 21:01:35 +0000 (21:01 +0000)]
Remove now unused enableBackend()

13 years agoFix return type documentation
Sam Reed [Thu, 3 Feb 2011 20:57:56 +0000 (20:57 +0000)]
Fix return type documentation

13 years agoFixup spaces to tabs
Sam Reed [Thu, 3 Feb 2011 20:47:54 +0000 (20:47 +0000)]
Fixup spaces to tabs

13 years ago(no commit message)
Chad Horohoe [Thu, 3 Feb 2011 20:40:20 +0000 (20:40 +0000)]

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 3 Feb 2011 19:50:35 +0000 (19:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-03 19:28:00 UTC)

13 years agoFollow-up r81408: Add new message key to maintenance file
Raimond Spekking [Thu, 3 Feb 2011 19:22:44 +0000 (19:22 +0000)]
Follow-up r81408: Add new message key to maintenance file

13 years ago* Use wfMessage() instead of wfMsgGetKey()
Alexandre Emsenhuber [Thu, 3 Feb 2011 17:30:14 +0000 (17:30 +0000)]
* Use wfMessage() instead of wfMsgGetKey()
* Don't play with $wgLang, pass the Language object to the Message object
* Bug fix: when 'enableparser' is passed without 'args', $1 is no longer replaced by an empty string (the default value on line 92 of the file was null instead of array(), making wfMsgExt() think that this was the value of $1 and thus this was replaced)

13 years agobug 27133 - Update docs/skin.txt
Sam Reed [Thu, 3 Feb 2011 16:45:45 +0000 (16:45 +0000)]
bug 27133 - Update docs/skin.txt

13 years agoLocalisation updates from translatewiki.net
Siebrand Mazeland [Thu, 3 Feb 2011 15:59:55 +0000 (15:59 +0000)]
Localisation updates from translatewiki.net
* Update namespace names.

13 years agoLocalisation updates from translatewiki.net
Siebrand Mazeland [Thu, 3 Feb 2011 15:35:25 +0000 (15:35 +0000)]
Localisation updates from translatewiki.net
* Update magic words

13 years agoFollow-up r81456: forgot to remove a global declaration
Alexandre Emsenhuber [Thu, 3 Feb 2011 15:31:38 +0000 (15:31 +0000)]
Follow-up r81456: forgot to remove a global declaration

13 years ago* Use wfMessage() instead of wfMsgGetKey() and wfEmptyMsg()
Alexandre Emsenhuber [Thu, 3 Feb 2011 15:29:13 +0000 (15:29 +0000)]
* Use wfMessage() instead of wfMsgGetKey() and wfEmptyMsg()
* Factorise common code

13 years agoLocalisation updates from translatewiki.net
Siebrand Mazeland [Thu, 3 Feb 2011 15:27:08 +0000 (15:27 +0000)]
Localisation updates from translatewiki.net
* Update special page aliases

13 years agoFollowup r81446: and mergehistory too
Roan Kattouw [Thu, 3 Feb 2011 13:21:25 +0000 (13:21 +0000)]
Followup r81446: and mergehistory too

13 years agoAdd editusercss and edituserjs rights to User::$mCoreRights. Pointed out by Scalable...
Roan Kattouw [Thu, 3 Feb 2011 13:20:14 +0000 (13:20 +0000)]
Add editusercss and edituserjs rights to User::$mCoreRights. Pointed out by Scalable on IRC

13 years agoFollow-up to r81439, works up to installing the admin user then dies with:
OverlordQ [Thu, 3 Feb 2011 05:17:18 +0000 (05:17 +0000)]
Follow-up to r81439, works up to installing the admin user then dies with:

Creating administrator user account...

Mediawiki tried to access the database via wfGetDB(). This is not allowed.

Backtrace:

#0 /var/www/testsite.com/w/includes/GlobalFunctions.php(3020): LBFactory_Fake->getMainLB(false)
#1 /var/www/testsite.com/w/includes/GlobalFunctions.php(3010): wfGetLB(false)
#2 /var/www/testsite.com/w/includes/User.php(2558): wfGetDB(-1)
#3 /var/www/testsite.com/w/includes/installer/Installer.php(1383): User->idForName()
#4 [internal function]: Installer->createSysop(Object(PostgresInstaller))
#5 /var/www/testsite.com/w/includes/installer/Installer.php(1293): call_user_func(Array, Object(PostgresInstaller))
#6 /var/www/testsite.com/w/includes/installer/WebInstallerPage.php(1022): Installer->performInstallation(Array, Array)
#7 /var/www/testsite.com/w/includes/installer/WebInstaller.php(243): WebInstaller_Install->execute()
#8 /var/www/testsite.com/w/config/index.php(46): WebInstaller->execute(Array)
#9 /var/www/testsite.com/w/config/index.php(14): wfInstallerMain()
#10 {main}

13 years agoResults of my work on new-installer and Pg.
Mark A. Hershberger [Thu, 3 Feb 2011 04:06:11 +0000 (04:06 +0000)]
Results of my work on new-installer and Pg.

* NOTE: this commit removes any semblence of tsearch compatibility with pre-8.3 PostgreSQL
* Make new-installer work against PostgreSQL
* Remove SearchPostgres.php's call to pg_fetch_result.  I think this is the only one outside of the vestigtial old installer code.

13 years agoKill the XMLReader2 class in response to Tim's code review comments on r68587
Andrew Garrett [Thu, 3 Feb 2011 01:25:09 +0000 (01:25 +0000)]
Kill the XMLReader2 class in response to Tim's code review comments on r68587

13 years agoCommit some fixes for comments on r77741
Daniel Friesen [Thu, 3 Feb 2011 00:00:58 +0000 (00:00 +0000)]
Commit some fixes for comments on r77741

13 years agoFixed bug #26829 by increasing the specificity of the CSS hack used to get IE6 workin...
Trevor Parscal [Wed, 2 Feb 2011 22:59:06 +0000 (22:59 +0000)]
Fixed bug #26829 by increasing the specificity of the CSS hack used to get IE6 working so that it doesn't also affect IE7.

13 years agoFollowup r81427, actually use the $msg variable
Sam Reed [Wed, 2 Feb 2011 22:43:07 +0000 (22:43 +0000)]
Followup r81427, actually use the $msg variable

13 years agoFollowup r67094, factor out code duplication in HistoryPage::getStartBody()
Sam Reed [Wed, 2 Feb 2011 22:31:48 +0000 (22:31 +0000)]
Followup r67094, factor out code duplication in HistoryPage::getStartBody()

13 years agoFollowup r67094
Sam Reed [Wed, 2 Feb 2011 22:23:11 +0000 (22:23 +0000)]
Followup r67094

Wrap some long lines

Tidy up SQL "IN()" wheel re-invention and such

Remove passing of $dbw around

Remove passing of by reference

13 years agofollowup r81408: fix option desc and year in copyright statement
Ilmari Karonen [Wed, 2 Feb 2011 21:30:02 +0000 (21:30 +0000)]
followup r81408: fix option desc and year in copyright statement

13 years agoTest suite for revisions and date related magic variables.
Antoine Musso [Wed, 2 Feb 2011 21:04:21 +0000 (21:04 +0000)]
Test suite for revisions and date related magic variables.

Tests should be carefully reviewed, please note there is are exceptions
for 'revisionday' and 'revisionmonth1' magics which are hardcoded in
the parser to return an integer.

Follow up r66200

TESTS:

$ php phpunit.php -c suite.xml --filter MagicVariable --testdox
PHPUnit 3.5.10 by Sebastian Bergmann.

MagicVariable
 [x] Currentday is un padded
 [x] Currentdaytwo is zero padded
 [x] Localday is un padded
 [x] Localdaytwo is zero padded
 [x] Currentmonth is zero padded
 [x] Currentmonthone is un padded
 [x] Localmonth is zero padded
 [x] Localmonthone is un padded
 [x] Revisionday is un padded
 [x] Revisiondaytwo is zero padded
 [x] Revisionmonth is zero padded
 [x] Revisionmonthone is un padded
$

13 years agoMerge r80947 from 1.16wmf4 to trunk: throw exception when text couldn't be loaded...
Roan Kattouw [Wed, 2 Feb 2011 20:25:47 +0000 (20:25 +0000)]
Merge r80947 from 1.16wmf4 to trunk: throw exception when text couldn't be loaded from archive table

13 years agofollowup r81408: fix class name in comment
Ilmari Karonen [Wed, 2 Feb 2011 19:33:32 +0000 (19:33 +0000)]
followup r81408: fix class name in comment

13 years agoAdd a maintenance script to fix double redirects (and corresponding edit summary...
Ilmari Karonen [Wed, 2 Feb 2011 19:25:53 +0000 (19:25 +0000)]
Add a maintenance script to fix double redirects (and corresponding edit summary messages). Still lacks some features like batch querying, but basically it works.

13 years agoFix regression in r81124, causing &pst to be ignored for the purposees of actually...
Roan Kattouw [Wed, 2 Feb 2011 19:16:05 +0000 (19:16 +0000)]
Fix regression in r81124, causing &pst to be ignored for the purposees of actually parsing wikitext

13 years agoCleanup SpecialUploadStash
Bryan Tong Minh [Wed, 2 Feb 2011 16:07:28 +0000 (16:07 +0000)]
Cleanup SpecialUploadStash

Follow-up r78426:
* Fix clearing the stash; The data array passed has as keys the keys passed used in the descriptor, not the HTML input name
* Transform array( __CLASS__, $fname ) to __CLASS__ . "::$fname", because not all PHP version support the first
* Remove addHiddenField; not needed
* Fix indentation
* Kill loadRequest all together; all this stuff is handled by HTMLForm
Follow-up r80993: Use LocalRepo to create the UploadStash

13 years agoFollowup r81313, fix 210 typo
Sam Reed [Wed, 2 Feb 2011 15:48:43 +0000 (15:48 +0000)]
Followup r81313, fix 210 typo

13 years agoFollow-up r77640: Check whether there are errors before asking Status to transform...
Bryan Tong Minh [Wed, 2 Feb 2011 15:44:42 +0000 (15:44 +0000)]
Follow-up r77640: Check whether there are errors before asking Status to transform them into wikitext.

13 years ago* recover dropped check of $wgUsePathInfo from r81363
Mark A. Hershberger [Wed, 2 Feb 2011 15:44:37 +0000 (15:44 +0000)]
* recover dropped check of $wgUsePathInfo from r81363
* document getPathInfo

13 years agoRemove the $request parameter fro SpecialUploadStash::__construct(). This parameter...
Bryan Tong Minh [Wed, 2 Feb 2011 15:30:20 +0000 (15:30 +0000)]
Remove the $request parameter fro SpecialUploadStash::__construct(). This parameter was in SpecialUpload::__construct because it used to be the only way to talk to the upload backend in the pre-1.16 era. Not needed for SpecialUploadStash.

13 years agoForce isCached() to false; otherwise the result is "This page is disabled for perform...
Alexandre Emsenhuber [Wed, 2 Feb 2011 14:48:26 +0000 (14:48 +0000)]
Force isCached() to false; otherwise the result is "This page is disabled for performance reason" when both $wgMiserMode and $wgDisableQueryPages are true

13 years agoFixup fixme on r81198, explicitally ORDER BY qc_value ASC if not doing DESC
Sam Reed [Wed, 2 Feb 2011 14:26:12 +0000 (14:26 +0000)]
Fixup fixme on r81198, explicitally ORDER BY qc_value ASC if not doing DESC

13 years agoFollow-up r79964: Fix double parsing of file info
Bryan Tong Minh [Wed, 2 Feb 2011 14:07:08 +0000 (14:07 +0000)]
Follow-up r79964: Fix double parsing of file info

13 years agoFollowup r81373, r81363
Sam Reed [Wed, 2 Feb 2011 13:02:45 +0000 (13:02 +0000)]
Followup r81373, r81363

PHP Notice:  Undefined variable: matches in /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/includes/WebRequest.php on line 109

Explicitally define $matches at top of function, allowing it to always be defined for all paths

13 years agoCouple more return hints
Sam Reed [Wed, 2 Feb 2011 11:38:50 +0000 (11:38 +0000)]
Couple more return hints

Swap and for &&

13 years agoRemove false related to failfunction...
Sam Reed [Wed, 2 Feb 2011 11:38:25 +0000 (11:38 +0000)]
Remove false related to failfunction...

13 years agoFollow-up r79682: more documentation tidying
Happy-melon [Wed, 2 Feb 2011 11:00:09 +0000 (11:00 +0000)]
Follow-up r79682: more documentation tidying

13 years agoFixup some trailing newlines
Sam Reed [Wed, 2 Feb 2011 10:42:17 +0000 (10:42 +0000)]
Fixup some trailing newlines

Fixup indentation of a few methods

Add a couple of return type hints

13 years agoBlacklist ZIP subtypes added in r68873, to avoid GIFAR.
Tim Starling [Wed, 2 Feb 2011 05:35:57 +0000 (05:35 +0000)]
Blacklist ZIP subtypes added in r68873, to avoid GIFAR.

13 years agofollow up r81363 and fix Bug#27099
Mark A. Hershberger [Wed, 2 Feb 2011 03:14:37 +0000 (03:14 +0000)]
follow up r81363 and fix Bug#27099

13 years ago* Remove last bit of code that uses PATH_INFO from img_auth.php so that people who...
Mark A. Hershberger [Wed, 2 Feb 2011 01:08:15 +0000 (01:08 +0000)]
* Remove last bit of code that uses PATH_INFO from img_auth.php so that 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.

13 years agoWhitespace cleanup
Mark A. Hershberger [Tue, 1 Feb 2011 23:08:10 +0000 (23:08 +0000)]
Whitespace cleanup

13 years agoRelax Language::isValidCode() to avoid breaking uselang hacks
Tim Starling [Tue, 1 Feb 2011 22:54:50 +0000 (22:54 +0000)]
Relax Language::isValidCode() to avoid breaking uselang hacks

13 years ago(bug 27094) fix path traversal vulnerability
Tim Starling [Tue, 1 Feb 2011 22:43:58 +0000 (22:43 +0000)]
(bug 27094) fix path traversal vulnerability

13 years ago(bug 27093, CVE-2011-0047): Fixed CSS injection vulnerability. The StringUtils.php...
Tim Starling [Tue, 1 Feb 2011 22:36:43 +0000 (22:36 +0000)]
(bug 27093, CVE-2011-0047): Fixed CSS injection vulnerability. The StringUtils.php patch is by Roan, the Sanitizer.php patch is by me.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 1 Feb 2011 20:52:54 +0000 (20:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-01 20:37:00 UTC)

13 years agoFollowup r81311, add MysqlUpdater function to update ll_lang length if it's still 10
Sam Reed [Tue, 1 Feb 2011 18:58:32 +0000 (18:58 +0000)]
Followup r81311, add MysqlUpdater function to update ll_lang length if it's still 10

13 years agoFor bug 24129 and a followup to r23239, there was never a patch to transfer from...
Sam Reed [Tue, 1 Feb 2011 18:35:38 +0000 (18:35 +0000)]
For bug 24129 and a followup to r23239, there was never a patch to transfer from VARCHAR/VARBINARY(10) to VARBINARY(20)

Need to work out how to fit it into the updaters...

13 years ago* (bug 26851) Special:UserRights now allows to prefill the reason field
Alexandre Emsenhuber [Tue, 1 Feb 2011 15:17:25 +0000 (15:17 +0000)]
* (bug 26851) Special:UserRights now allows to prefill the reason field
The parameter is named "user-reason" as for the form submission

13 years agoApplying conventions and some JSLint good practices in core modules.
Krinkle [Tue, 1 Feb 2011 02:28:10 +0000 (02:28 +0000)]
Applying conventions and some JSLint good practices in core modules.

13 years agoFunction out query building, to allow easier overriding
Sam Reed [Mon, 31 Jan 2011 23:41:38 +0000 (23:41 +0000)]
Function out query building, to allow easier overriding

13 years agoFollowup r81279, forgot to press save!
Sam Reed [Mon, 31 Jan 2011 23:13:22 +0000 (23:13 +0000)]
Followup r81279, forgot to press save!

13 years agoRe-write raw SQL
Sam Reed [Mon, 31 Jan 2011 23:06:36 +0000 (23:06 +0000)]
Re-write raw SQL

Wrap lines, add missing braces

13 years agoApplying conventions and some JSLint good practices in core modules.
Krinkle [Mon, 31 Jan 2011 22:02:58 +0000 (22:02 +0000)]
Applying conventions and some JSLint good practices in core modules.

13 years agofix Bug#26274: Database layer should allow arrays for ORDER BY, GROUP BY
Mark A. Hershberger [Mon, 31 Jan 2011 21:04:40 +0000 (21:04 +0000)]
fix Bug#26274: Database layer should allow arrays for ORDER BY, GROUP BY

13 years agomaking my whitespace OCD happier.
Mark A. Hershberger [Mon, 31 Jan 2011 20:58:06 +0000 (20:58 +0000)]
making my whitespace OCD happier.

13 years agoMore missing semi colons
Sam Reed [Mon, 31 Jan 2011 20:30:31 +0000 (20:30 +0000)]
More missing semi colons

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 31 Jan 2011 20:16:49 +0000 (20:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-31 20:09:00 UTC)

13 years agoFixups to r81266
Chad Horohoe [Mon, 31 Jan 2011 20:09:29 +0000 (20:09 +0000)]
Fixups to r81266

13 years ago(bug 26857) Fatal error during installation enabling 'Vector' extension (or any exten...
Chad Horohoe [Mon, 31 Jan 2011 20:00:59 +0000 (20:00 +0000)]
(bug 26857) Fatal error during installation enabling 'Vector' extension (or any extension, really). The reason we're including extensions during setup is so they have a chance to register with LoadExtensionSchemaUpdates. Before including extensions, we now include DefaultSettings.php, so any operations on those variables won't result in the fatals described in the bug.

More importantly, this adds support for installing extension tables *at* install time. Previously, the best we could do was to add the require()s to LocalSettings. However, without a subsequent update, wikis will probably start having errors immediately after install (this is really bad!). So I've added an interface to the DatabaseUpdater passed to LoadExtensionSchemaUpdates. An extension can now call addNewExtension() which will allow the extension to be enabled on install and not just update. Example committed in CodeReview

13 years agoWrapping core modules (FIXME from r79929)
Krinkle [Mon, 31 Jan 2011 19:33:16 +0000 (19:33 +0000)]
Wrapping core modules (FIXME from r79929)
(Touch: r74088, r73046)

13 years agoFollow-up r81209: Use the same param detection method as WebStore, so that thumbnails...
Bryan Tong Minh [Mon, 31 Jan 2011 18:07:44 +0000 (18:07 +0000)]
Follow-up r81209: Use the same param detection method as WebStore, so that thumbnails with different mimetypes than the original file are thumbnailed as well.

13 years agoAdd a fairly pants TRUNCATE vs DELETE benchmark...
Sam Reed [Mon, 31 Jan 2011 17:33:30 +0000 (17:33 +0000)]
Add a fairly pants TRUNCATE vs DELETE benchmark...

13 years agoSwap "or" to ||
Sam Reed [Mon, 31 Jan 2011 16:41:19 +0000 (16:41 +0000)]
Swap "or" to ||