Brion Vibber
ce9e97429b
Some legibility cleanup; remove some debug code; make the Special:Userlogin special case work in non-English non-French wikis
2004-10-27 07:37:35 +00:00
Antoine Musso
28ea816fba
Implementing user levels management. This is only a very basic interface and several things need to be done! A tracking bug is at http://bugzilla.wikipedia.org/show_bug.cgi?id=767
2004-10-24 19:14:48 +00:00
Tim Starling
412eda0517
Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php
2004-10-24 07:10:33 +00:00
River Tarnell
d42eb73e7a
security_fix
2004-10-18 00:15:30 +00:00
Brion Vibber
3de663abf6
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)
2004-10-16 07:15:18 +00:00
Wil Mahan
2a03980093
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.
2004-10-11 17:34:39 +00:00
Zheng Zhu
3285ea4627
performance tweak related to title conversion
2004-10-08 04:27:07 +00:00
Wil Mahan
6cf22f01b9
Small mistake in the title length check: I meant $r, not
...
$t (silly one-character variable names)
2004-10-05 04:22:36 +00:00
Wil Mahan
73f357a52b
Oops, I committed the wrong file - sorry. :)
2004-10-05 00:21:52 +00:00
Zheng Zhu
bfc27da4c4
Convert the title of an article to the preferred language variant.
2004-10-04 03:47:39 +00:00
Jens Frank
7beecbfecb
Stupid typo
2004-10-03 07:24:51 +00:00
Jens Frank
8c6f6dd5e5
Some paranoia checks
2004-10-03 07:06:18 +00:00
Brion Vibber
39e6aed327
Quotes, dammit! Remove potential SQL injection vector.
2004-10-03 01:44:26 +00:00
Jens Frank
186f6c4d5e
Moved 'get previous/next revision' code from DifferenceEngine to Title'
2004-10-02 19:49:54 +00:00
Wil Mahan
984537d27c
Convert documentation of functions to phpdoc format (all 71 of
...
them), adding more comments where appropriate
2004-09-30 05:21:20 +00:00
Brion Vibber
332a0cf268
Back out kturner's old table restructure for now.
...
This will require downtiime on upgrade, so we're not going to do it until we have a better idea of the cost and can make all necessary changes at once to minimize it.
2004-09-26 19:49:44 +00:00
River Tarnell
705c7680fc
remove old_namespace and old_title from old table.
2004-09-26 14:43:12 +00:00
Zheng Zhu
c05629c010
Third batch of files modified to replace selected wgLang with wgContLang
2004-09-24 16:45:31 +00:00
Zheng Zhu
e907ea27d0
use wfMsgForContent() when creating new titles from text
2004-09-22 03:55:08 +00:00
Wil Mahan
474968e5ea
Fix "Call to a member function on a non-object in /home/wikipedia/htdocs/test/w/includes/Title.php on line 189" error when a redirect contains '{' or '}'
2004-09-19 08:53:12 +00:00
River Tarnell
9dcbae6ede
Patch from Wil Mahan <wmahan_04 at yahoo.com> to fix a bug where moving a page
...
left the redirect with cur_random=0, so any new page created in its place never
appeared on Special:Randompage. Fix: calculate cur_random for redirect when
moving page.
2004-09-17 05:36:59 +00:00
River Tarnell
6f49fc4e9d
forwardport better fix (thanks brion)
2004-09-14 05:35:34 +00:00
Brion Vibber
6671b7e2bb
Remove { and } from legal title chars, as they cause lots of weird problems
...
being special markup characters. Should not have been added in early 1.3.
* Bug 267: Entering {{...}} as the title causes a page rendering error
* http://bugzilla.wikipedia.org/show_bug.cgi?id=267
2004-09-11 22:45:59 +00:00
Tim Starling
97643f63f9
Improved consistency in handling redirects. If #redirect [[Special:Userlogout]] isn't a redirect, it shouldn't be treated like one in various places.
2004-09-11 11:39:24 +00:00
Tim Starling
8ca3f08135
unreported bug in the new makeTitle(), disallow redirects to Special:Userlogout
2004-09-11 09:35:24 +00:00
Domas Mituzas
734906f852
tsfix
2004-09-07 08:00:45 +00:00
Domas Mituzas
edb504a778
fix timestamps, sequences
2004-09-06 09:57:30 +00:00
Domas Mituzas
53f1706588
timestamp fix
2004-09-06 09:34:44 +00:00
Domas Mituzas
0672648d40
fix timestamp
2004-09-06 08:43:55 +00:00
Brion Vibber
e199fe8803
Move the check for legacy/UTF character conversion on incoming URLs from
...
Title::newFromURL into WebRequest itself. Should now work on all get params,
so essentially the full URL will be converted.
(The check is not done if the referer matches the canonical server, as before.)
Fixes problem with latin-1 typed URLs introduced by the stricter UTF-8
validation checks running before the conversion check.
One minor glitch; the canonical URL redirection no longer picks up on a
charset conversion. However it's broken anyway and doesn't pick up eg
non-canonical URLs using ?title= instead of / or other such things. Needs
to be improved...
2004-09-06 03:01:33 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Brion Vibber
f708d54f7d
typo
2004-09-03 06:19:16 +00:00
Brion Vibber
2406b511a6
Start cracking down on illegal titles: in UTF-8 mode reject titles which have had the 'replacement character' inserted, representing illegal UTF-8 sequences or non-legal Unicode characters.
...
Moved the PATH_INFO check from index.php into WebRequest; it now just shoves the param into $_REQUEST['title'].
2004-09-03 06:12:57 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Antoine Musso
c4b66bb758
rewrite of the dmoz-like category browser. Known bugs: makeKnownLink instead of makeLink, <br> is put at beginning instead of the end
2004-08-23 00:49:02 +00:00
Brion Vibber
82571fa72d
Add back the slower version of Title::makeTitle as Title::makeTitleSafe()
...
and use it in a few places where user names, images, or messages are being
used to create titles.
2004-08-22 23:55:36 +00:00
Brion Vibber
d9b242a149
Set up the Title fields directly in Title::makeTitle(), skipping the
...
secureAndSplit() step. This saves a lot of time and memory when working
with titles that are known-good (coming out of the database or other
Title objects, for instance).
Warning: if you feed invalid input to makeTitle() it will *not* be
checked for validity anymore and may do bad things. Don't do that.
2004-08-22 23:19:12 +00:00
Antoine Musso
3d60242fb5
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
2004-08-22 17:24:50 +00:00
Antoine Musso
4d15bd9882
Fix bugzilla bug #100 . Redirects can be done to category either by:
...
#REDIRECT [[Category:Music]] (article will be in the category)
or
#REDIRECT [[:Category:Music]] (article left out of category)
2004-08-21 22:39:56 +00:00
Brion Vibber
dde3967d28
Don't include SearchEngine.php when it's not used. Saves about 180k of memory at runtime.
2004-08-21 09:51:01 +00:00
Tim Starling
b6685480c2
FOR UPDATE mode for Article class, and for getArticleID function of Title. Using these modes in EditPage.php to prevent odd things happening on section edits and merged conflicts
2004-08-20 14:59:49 +00:00
Antoine Musso
0e470979b5
double to single quotes.
2004-08-16 20:14:35 +00:00
Brion Vibber
f221d1fd92
Typo/logic error in move page watchlist update.
...
Bug 50: after moving a watched page the page is not in watch list any more
http://bugzilla.wikipedia.org/show_bug.cgi?id=50
2004-08-14 18:23:50 +00:00
Antoine Musso
117817252b
replace wfEscapeHTML() by htmlspecialchars() as brion did for other functions. Old one is non existent anyway
2004-08-13 18:45:03 +00:00
Brion Vibber
eba8d50543
Further move fix: if someone has made a piped redirect link, don't try to read the piped title as part of the target name.
2004-08-08 01:38:31 +00:00
Brion Vibber
3334db3b66
Page move fix: when checking for redirects, don't die if redirected title is invalid. Error reported by Looxix in #mediawiki
2004-08-08 01:30:39 +00:00
Tim Starling
d73935a5f0
New feature, nicer display of redirects. Removed special case for redirects from Parser.php, which probably would have caused problems anyway. Changed a few places to use NS_xxx constants instead of the old Namespace:: functions.
2004-08-07 03:50:46 +00:00
Brion Vibber
b902a2bdf3
Protect against SQL insertion attacks in page move category update.
2004-08-06 19:17:49 +00:00
Magnus Manske
b9d3881e2c
This should fix bug 975072 (Move page doesn't update categories page)
2004-08-06 16:25:27 +00:00
Brion Vibber
fbc39af2d8
Fix typos and missing case in the check for unreachable relative paths in titles.
...
Fixes [ 760408 ] "Relative" paths in title cause browser trouble
2004-08-03 05:26:27 +00:00