lhc/web/wiklou.git
19 years agoang
Tim Starling [Sun, 17 Oct 2004 01:46:18 +0000 (01:46 +0000)]
ang

19 years agoGothic
Tim Starling [Sun, 17 Oct 2004 01:41:12 +0000 (01:41 +0000)]
Gothic

19 years agoReject titles with %XX hex codes (since these have special meaning in URL links and...
Brion Vibber [Sat, 16 Oct 2004 07:15:18 +0000 (07:15 +0000)]
Reject titles with %XX hex codes (since these have special meaning in URL links and are interpreted for this purpose, breaking things if they're used literally)

19 years agoWork around weird vanishing form data problem (http://bugs.php.net/bug.php?id=22427 )
Brion Vibber [Sat, 16 Oct 2004 02:36:51 +0000 (02:36 +0000)]
Work around weird vanishing form data problem (bugs.php.net/bug.php?id=22427 )

19 years ago+ "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" to the browser black list
Emmanuel Engelhart [Fri, 15 Oct 2004 22:15:11 +0000 (22:15 +0000)]
+ "/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" to the browser black list
array

19 years agoAdd tests for links inside section headings and
Wil Mahan [Fri, 15 Oct 2004 17:50:08 +0000 (17:50 +0000)]
Add tests for links inside section headings and
<nowiki> inside links, and explicitly set the title
for some tests now that Skin.php used by the parser
has been corrected to longer use the $wgTitle global.

19 years agoNow it is no longer necessary to create an OutputPage
Wil Mahan [Fri, 15 Oct 2004 17:46:42 +0000 (17:46 +0000)]
Now it is no longer necessary to create an OutputPage
object, because Parser replaces link placeholders.
This also means that tidy happens automatically
on the parser output if $wgUseTidy = true.

19 years agoMove replaceLinkHolders() from OutputPage to Parser, because
Wil Mahan [Fri, 15 Oct 2004 17:39:10 +0000 (17:39 +0000)]
Move replaceLinkHolders() from OutputPage to Parser, because
it needs to happen before unstripNoWiki() and before tidy.
This also makes the parser more self-contained, so there is
no need to create an OutputPage object for the parser
tester.

Call unstripNoWiki() before creating a Title object
for an internal link; this fixes <nowiki> inside of
a link target. Need to make sure this does not degrade
performance.

19 years agoChange editSectionLink() and editSectionScript() to take a
Wil Mahan [Fri, 15 Oct 2004 17:33:51 +0000 (17:33 +0000)]
Change editSectionLink() and editSectionScript() to take a
title object instead of using a global; we want to keep
$wgTitle and $wgUser out of the parser

19 years agodisable client cache for 'you have new messages'
Domas Mituzas [Fri, 15 Oct 2004 09:57:23 +0000 (09:57 +0000)]
disable client cache for 'you have new messages'

19 years agodon't double escape
River Tarnell [Thu, 14 Oct 2004 09:26:51 +0000 (09:26 +0000)]
don't double escape

19 years agorestore accidentally broken functionality
River Tarnell [Thu, 14 Oct 2004 09:18:36 +0000 (09:18 +0000)]
restore accidentally broken functionality

19 years agofix xss attack
River Tarnell [Thu, 14 Oct 2004 08:58:47 +0000 (08:58 +0000)]
fix xss attack

19 years agoValidate input
Brion Vibber [Thu, 14 Oct 2004 08:38:06 +0000 (08:38 +0000)]
Validate input

19 years agourl-encode the url
Brion Vibber [Thu, 14 Oct 2004 07:49:22 +0000 (07:49 +0000)]
url-encode the url

19 years agoxhtml fix
Brion Vibber [Thu, 14 Oct 2004 07:33:22 +0000 (07:33 +0000)]
xhtml fix

19 years agoXHTML fix
Brion Vibber [Thu, 14 Oct 2004 07:32:20 +0000 (07:32 +0000)]
XHTML fix

19 years agofix xss attack if wgRawHtml is enabled
River Tarnell [Thu, 14 Oct 2004 07:29:38 +0000 (07:29 +0000)]
fix xss attack if wgRawHtml is enabled

19 years agoXHTML fix, handle bad target more gracefully
Brion Vibber [Thu, 14 Oct 2004 07:29:12 +0000 (07:29 +0000)]
XHTML fix, handle bad target more gracefully

19 years agoescape html output
Brion Vibber [Thu, 14 Oct 2004 06:52:42 +0000 (06:52 +0000)]
escape html output

19 years agoNever used; just a TODO note
Brion Vibber [Thu, 14 Oct 2004 06:38:12 +0000 (06:38 +0000)]
Never used; just a TODO note

19 years agoEscape HTMl output
Brion Vibber [Thu, 14 Oct 2004 06:21:33 +0000 (06:21 +0000)]
Escape HTMl output

19 years agoFix XHTML tags
Brion Vibber [Thu, 14 Oct 2004 05:53:30 +0000 (05:53 +0000)]
Fix XHTML tags

19 years agoEscape HTML output
Brion Vibber [Thu, 14 Oct 2004 05:30:30 +0000 (05:30 +0000)]
Escape HTML output

19 years agoEscape input on a few error messages
Brion Vibber [Thu, 14 Oct 2004 05:14:45 +0000 (05:14 +0000)]
Escape input on a few error messages

19 years agofix xss attack
River Tarnell [Thu, 14 Oct 2004 05:08:33 +0000 (05:08 +0000)]
fix xss attack

19 years agoNever used; just had a todo message.
Brion Vibber [Thu, 14 Oct 2004 04:55:57 +0000 (04:55 +0000)]
Never used; just had a todo message.

19 years agospaces to tabs
Brion Vibber [Thu, 14 Oct 2004 04:55:06 +0000 (04:55 +0000)]
spaces to tabs

19 years agofix potential xss attack
River Tarnell [Thu, 14 Oct 2004 04:50:14 +0000 (04:50 +0000)]
fix potential xss attack

19 years agoFix potential HTML breakage if removechecked message were to include an apostrophe
Brion Vibber [Thu, 14 Oct 2004 04:40:58 +0000 (04:40 +0000)]
Fix potential HTML breakage if removechecked message were to include an apostrophe

19 years agoChanged the second Chinese character for Traditional Chinese to what it should be...
Zheng Zhu [Thu, 14 Oct 2004 04:40:57 +0000 (04:40 +0000)]
Changed the second Chinese character for Traditional Chinese to what it should be, Traditional;)

19 years agofix xss attack
River Tarnell [Thu, 14 Oct 2004 04:15:29 +0000 (04:15 +0000)]
fix xss attack

19 years agofix xss attack
River Tarnell [Thu, 14 Oct 2004 03:50:14 +0000 (03:50 +0000)]
fix xss attack

19 years agofix two xss attacks and one path validation attack
River Tarnell [Thu, 14 Oct 2004 02:56:02 +0000 (02:56 +0000)]
fix two xss attacks and one path validation attack

19 years agoClean up a few scriptlets
Brion Vibber [Thu, 14 Oct 2004 02:13:12 +0000 (02:13 +0000)]
Clean up a few scriptlets

19 years agofix xss attack
River Tarnell [Wed, 13 Oct 2004 21:38:50 +0000 (21:38 +0000)]
fix xss attack

19 years agoFix SQL injection bug
Jens Frank [Wed, 13 Oct 2004 21:30:18 +0000 (21:30 +0000)]
Fix SQL injection bug

19 years agoFix cross site scripting bug
Jens Frank [Wed, 13 Oct 2004 21:07:08 +0000 (21:07 +0000)]
Fix cross site scripting bug

19 years ago(bug 704) remove misleading LocalSettings.sample
Brion Vibber [Wed, 13 Oct 2004 20:02:32 +0000 (20:02 +0000)]
(bug 704) remove misleading LocalSettings.sample

19 years agoFix cross site scripting bug
Jens Frank [Wed, 13 Oct 2004 20:02:10 +0000 (20:02 +0000)]
Fix cross site scripting bug

19 years agoPull the actual series of updater calls into do_all_updaters(), add
Brion Vibber [Wed, 13 Oct 2004 07:38:43 +0000 (07:38 +0000)]
Pull the actual series of updater calls into do_all_updaters(), add
the necessary require_all's to updaters.inc, and add a command-line
update.php which runs them without having to pull things out and
run the web installer.

19 years agopatch from tom
Brion Vibber [Wed, 13 Oct 2004 07:31:52 +0000 (07:31 +0000)]
patch from tom
Bug 697: Several XHTML errors on Special:Preferences

19 years agoA pair of tests for self links
Wil Mahan [Wed, 13 Oct 2004 06:09:01 +0000 (06:09 +0000)]
A pair of tests for self links

19 years agoWhen checking for self links, use Title::getFragment() rather
Wil Mahan [Wed, 13 Oct 2004 04:30:19 +0000 (04:30 +0000)]
When checking for self links, use Title::getFragment() rather
than searching for '#', so that self-links escaped with
character entities are handled correctly. Related to
bug 337.

19 years agoBUG#178 Allow center/right/left/etc image options even if
Jens Frank [Tue, 12 Oct 2004 10:57:27 +0000 (10:57 +0000)]
BUG#178 Allow center/right/left/etc image options even if
$wgUseImageResize is set to false. Changing width or computing thumbs still depends on $wgUseImageResize.

19 years agoCatch error 2000, too. Some mysql servers return 2000 instead of 1045
Jens Frank [Tue, 12 Oct 2004 10:07:31 +0000 (10:07 +0000)]
Catch error 2000, too. Some mysql servers return 2000 instead of 1045

19 years agoAdd the new "longdesc" attribute to all image tests, and
Wil Mahan [Tue, 12 Oct 2004 00:17:13 +0000 (00:17 +0000)]
Add the new "longdesc" attribute to all image tests, and
fix a test that is currently broken (in a right-aligned
image with no caption, the title/alt text should not
be "right").

19 years agoAdd "longdesc" attribute to all (non-external) images, containing
Wil Mahan [Tue, 12 Oct 2004 00:12:06 +0000 (00:12 +0000)]
Add "longdesc" attribute to all (non-external) images, containing
the URL of the image page.

19 years agoBriefly document the $wgLocaltimezone variable.
Evan Prodromou [Mon, 11 Oct 2004 22:59:29 +0000 (22:59 +0000)]
Briefly document the $wgLocaltimezone variable.

19 years agoTest case for disallowed character in an external link
Wil Mahan [Mon, 11 Oct 2004 22:13:02 +0000 (22:13 +0000)]
Test case for disallowed character in an external link

19 years agoAlso add " to disallowed URI characters, per RFC 2396, fixing
Wil Mahan [Mon, 11 Oct 2004 22:10:14 +0000 (22:10 +0000)]
Also add " to disallowed URI characters, per RFC 2396, fixing
some more test cases.

19 years agoPass the -a option to diff in case there are tests with
Wil Mahan [Mon, 11 Oct 2004 21:55:35 +0000 (21:55 +0000)]
Pass the -a option to diff in case there are tests with
non-text characters; set wgMaxTocLevel global; use
.PHONY target in Makefile in case someone happens
to have a file named 'test' or similar in the
maintenance/ directory.

19 years agoUpdate tests for 289:
Brion Vibber [Mon, 11 Oct 2004 21:47:31 +0000 (21:47 +0000)]
Update tests for 289:
* fix the expected output to match actual behavior with caught invalid chars
* add cases with double-quote (")

19 years ago$wgBrowserBlackList must be an array, not a string. Also, the previous value would...
Brion Vibber [Mon, 11 Oct 2004 21:23:39 +0000 (21:23 +0000)]
$wgBrowserBlackList must be an array, not a string. Also, the previous value would have matched virtually all browsers other than Mozilla.

19 years agoBUG#187, BUG#669 Fix centered images. span apparently didn't work properly
Jens Frank [Mon, 11 Oct 2004 20:03:24 +0000 (20:03 +0000)]
BUG#187, BUG#669 Fix centered images. span apparently didn't work properly

19 years agoUse the new wfRandom() function for setting cur_random
Wil Mahan [Mon, 11 Oct 2004 19:17:34 +0000 (19:17 +0000)]
Use the new wfRandom() function for setting cur_random

19 years agoOops, invalid chars in bracketed external links should
Wil Mahan [Mon, 11 Oct 2004 19:15:24 +0000 (19:15 +0000)]
Oops, invalid chars in bracketed external links should
be added to the link description, not the trail.

19 years agoFix bounding box feature of thumbnails (e.g. |200x200px|)
Jens Frank [Mon, 11 Oct 2004 19:02:56 +0000 (19:02 +0000)]
Fix bounding box feature of thumbnails (e.g. |200x200px|)

19 years agoRe-exclude '<' and '>' from external links, since brion pointed
Wil Mahan [Mon, 11 Oct 2004 18:54:35 +0000 (18:54 +0000)]
Re-exclude '<' and '>' from external links, since brion pointed
out cases where it matters. We don't need to exclude them from
external link text, to allow for e.g. bold text in the link
description.

19 years ago+ better browser black list example
Emmanuel Engelhart [Mon, 11 Oct 2004 18:38:32 +0000 (18:38 +0000)]
+ better browser black list example

19 years ago$wgBrowserBlackList = "/Mozilla\/4./";
Emmanuel Engelhart [Mon, 11 Oct 2004 18:36:01 +0000 (18:36 +0000)]
$wgBrowserBlackList = "/Mozilla\/4./";

19 years agoBug 686: broken linktrail in Catalan
Brion Vibber [Mon, 11 Oct 2004 18:33:30 +0000 (18:33 +0000)]
Bug 686: broken linktrail in Catalan

19 years agoAdd more test cases for bug 289
Brion Vibber [Mon, 11 Oct 2004 18:12:14 +0000 (18:12 +0000)]
Add more test cases for bug 289

19 years agoBug 589: make random selection slightly more random. PHP's
Wil Mahan [Mon, 11 Oct 2004 17:34:39 +0000 (17:34 +0000)]
Bug 589: make random selection slightly more random. PHP's
mt_rand() function has a maximum value of 2^31-1, which
is small enough that duplicate values can occur due to the
Birthday paradox, e.g. on the English Wikipedia. To fix
this, add a wfRandom() function that calls mt_rand()
twice to get the desired amount of randomness.

19 years agoDetect and disallow &gt; and &lt; within external links.
Wil Mahan [Mon, 11 Oct 2004 16:57:49 +0000 (16:57 +0000)]
Detect and disallow &gt; and &lt; within external links.
Fixes bug 289.

19 years agoPrevent double-escaping of '<' and '>' in external links;
Wil Mahan [Mon, 11 Oct 2004 16:16:27 +0000 (16:16 +0000)]
Prevent double-escaping of '<' and '>' in external links;
allow them in free external links again, at least until there
is a consistent way of handling them. Convert some spaces to
tabs from zhengzhu's last commit.

19 years ago+ comment about the browser blacklist array
Emmanuel Engelhart [Mon, 11 Oct 2004 16:13:53 +0000 (16:13 +0000)]
+ comment about the browser blacklist array

19 years ago+ explicit example for the browser black list.
Emmanuel Engelhart [Mon, 11 Oct 2004 16:10:47 +0000 (16:10 +0000)]
+ explicit example for the browser black list.

19 years agodon't show redirects in categories
River Tarnell [Mon, 11 Oct 2004 11:09:18 +0000 (11:09 +0000)]
don't show redirects in categories

19 years agoIf wiki has the old non-unique indexes on cur, check for duplicate cur entries and...
Brion Vibber [Mon, 11 Oct 2004 07:44:37 +0000 (07:44 +0000)]
If wiki has the old non-unique indexes on cur, check for duplicate cur entries and remove the extras.

19 years agoObsolete and probably dangerous old script. Removed from 1.3 branch long ago, forgot...
Brion Vibber [Mon, 11 Oct 2004 07:43:44 +0000 (07:43 +0000)]
Obsolete and probably dangerous old script. Removed from 1.3 branch long ago, forgot to get it here.

19 years agoadd missing autoConvert wrapper
Brion Vibber [Mon, 11 Oct 2004 06:38:42 +0000 (06:38 +0000)]
add missing autoConvert wrapper

19 years agofix from live site, set->add for "loading".
Domas Mituzas [Mon, 11 Oct 2004 04:13:43 +0000 (04:13 +0000)]
fix from live site, set->add for "loading".

19 years agobugfix: check for existence of PRIMARY key in addition to UNIQUE key, as
Erik Moeller [Mon, 11 Oct 2004 04:10:41 +0000 (04:10 +0000)]
bugfix: check for existence of PRIMARY key in addition to UNIQUE key, as
MySQL returns "PRIMARY" as key_name. This caused uploads to fail with a
"patch required" message in HEAD even if the schema was up to date.

19 years agothis seems to have sneaked into HEAD somehow, belongs in SCHEMA_WORK only
Erik Moeller [Mon, 11 Oct 2004 03:28:18 +0000 (03:28 +0000)]
this seems to have sneaked into HEAD somehow, belongs in SCHEMA_WORK only

19 years agoupdate doc
Zheng Zhu [Mon, 11 Oct 2004 03:05:48 +0000 (03:05 +0000)]
update doc

19 years agoAdding the interface language to the page rendering hash; also fixed some formatting...
Zheng Zhu [Mon, 11 Oct 2004 02:46:31 +0000 (02:46 +0000)]
Adding the interface language to the page rendering hash; also fixed some formatting errors from my previous commits.

19 years agoFor content language, removed language code suffix from the message keys in the media...
Zheng Zhu [Mon, 11 Oct 2004 02:15:55 +0000 (02:15 +0000)]
For content language, removed language code suffix from the message keys in the mediawiki: namespace. This way languages that do not support multiple variants will see no change in the way the namespace works.

19 years agoUpdated the checktrans.php script to be a little more modern and to
Evan Prodromou [Sun, 10 Oct 2004 23:28:45 +0000 (23:28 +0000)]
Updated the checktrans.php script to be a little more modern and to
WFM. Removed the two variations on the theme, since they don't work.
Might as well have just one broken script instead of three.

19 years agoWhen deleting images / old image revisions, don't fail out if the file
Brion Vibber [Sun, 10 Oct 2004 22:56:23 +0000 (22:56 +0000)]
When deleting images / old image revisions, don't fail out if the file
doesn't exist or the oi_archive_name field is empty. Treat it gracefully
and continue deleting the database records.

Bug 484: image deletion causes an internal error

19 years agoFix brainfart that broke options on insertArray()
Brion Vibber [Sun, 10 Oct 2004 22:40:58 +0000 (22:40 +0000)]
Fix brainfart that broke options on insertArray()

19 years ago+ checkUnicodeCompliantBrowser() and code to show if necessary a warning message
Emmanuel Engelhart [Sun, 10 Oct 2004 21:30:17 +0000 (21:30 +0000)]
+ checkUnicodeCompliantBrowser() and code to show if necessary a warning message

19 years ago+ nonunicodebrowser message
Emmanuel Engelhart [Sun, 10 Oct 2004 21:27:15 +0000 (21:27 +0000)]
+ nonunicodebrowser message

19 years ago+ $wgBrowserBlackList
Emmanuel Engelhart [Sun, 10 Oct 2004 21:25:42 +0000 (21:25 +0000)]
+ $wgBrowserBlackList

19 years agofix bug 439: protected pages should not display a "move" link.
Brion Vibber [Sun, 10 Oct 2004 13:41:09 +0000 (13:41 +0000)]
fix bug 439: protected pages should not display a "move" link.

19 years agofix for bug 433: Title attribute on undelete button wrong
Brion Vibber [Sun, 10 Oct 2004 13:17:56 +0000 (13:17 +0000)]
fix for bug 433: Title attribute on undelete button wrong

19 years agoTest case for bug 289
Brion Vibber [Sun, 10 Oct 2004 13:05:04 +0000 (13:05 +0000)]
Test case for bug 289

19 years agofix for bug 149: Special:Recentchanges: Link that adds &from= to URL discards &limit...
Brion Vibber [Sun, 10 Oct 2004 09:44:00 +0000 (09:44 +0000)]
fix for bug 149: Special:Recentchanges: Link that adds &from= to URL discards &limit= and vice-versa

19 years agoDisable message cache transforms on install (bug 296)
Brion Vibber [Sun, 10 Oct 2004 08:36:59 +0000 (08:36 +0000)]
Disable message cache transforms on install (bug 296)

19 years ago'fromwikipedia' has been renamed to 'tagline'
Brion Vibber [Sun, 10 Oct 2004 04:30:01 +0000 (04:30 +0000)]
'fromwikipedia' has been renamed to 'tagline'

19 years agoFix for last checkin on Squid and for the generated data
Brion Vibber [Sat, 9 Oct 2004 21:55:28 +0000 (21:55 +0000)]
Fix for last checkin on Squid and for the generated data

19 years agoMore paranoia checks for Internet Explorer
Brion Vibber [Sat, 9 Oct 2004 21:24:52 +0000 (21:24 +0000)]
More paranoia checks for Internet Explorer

19 years agoAdjust spacing, and fix the disclaimer link again so it's separated from the printabl...
Brion Vibber [Sat, 9 Oct 2004 08:41:55 +0000 (08:41 +0000)]
Adjust spacing, and fix the disclaimer link again so it's separated from the printable link

19 years agoRe-tabification
Brion Vibber [Sat, 9 Oct 2004 08:34:52 +0000 (08:34 +0000)]
Re-tabification

19 years agoLoad form C data on demand; if we are dealing in all-ASCII text we can save some...
Brion Vibber [Sat, 9 Oct 2004 08:08:26 +0000 (08:08 +0000)]
Load form C data on demand; if we are dealing in all-ASCII text we can save some memory and time by not loading it.

19 years agoMerge adjacent edits to same page by same user in the RSS feed
Brion Vibber [Sat, 9 Oct 2004 06:49:28 +0000 (06:49 +0000)]
Merge adjacent edits to same page by same user in the RSS feed

19 years agoPut diffs into the RecentChanges RSS/Atom feed to make it more useful for offline...
Brion Vibber [Sat, 9 Oct 2004 02:55:32 +0000 (02:55 +0000)]
Put diffs into the RecentChanges RSS/Atom feed to make it more useful for offline reading (and more convenient in general). For new pages, includes the full wikitext.
Probably will want to do caching of diffs before pushing this one out the door, but it's not as bad as all that; nothing has to be parsed, just diffed.

19 years agoReduce dependence on $wgOut global in the difference formatter; just buffer up the...
Brion Vibber [Sat, 9 Oct 2004 02:53:11 +0000 (02:53 +0000)]
Reduce dependence on $wgOut global in the difference formatter; just buffer up the output and give it to $wgOut in a lump.
Also added DifferenceEngine::getDiff() so you can get a diff without sending it to $wgOut.

19 years agoFixed some tab bogosity and took out a couple of debug printf
Evan Prodromou [Fri, 8 Oct 2004 22:31:45 +0000 (22:31 +0000)]
Fixed some tab bogosity and took out a couple of debug printf
statements.

19 years agoFixed problems with hiding certain links (portal, currentevents,
Evan Prodromou [Fri, 8 Oct 2004 22:00:51 +0000 (22:00 +0000)]
Fixed problems with hiding certain links (portal, currentevents,
disclaimers). Corrected help text in Language.php -- it said to set
the values to '', but the code used '-'. Fixed Skin.php so it checks
for '-' for disclaimers. Also, fixed SkinPHPTal.php so it checks for
'-' anywhere it can show up -- in buildNavigationUrls and buildNavUrls.