Commit graph

611 commits

Author SHA1 Message Date
Tim Starling
98af136ad5 Added ss_images to site_stats, to replace the slow count(*) query in Parser.php. 2006-03-28 05:09:33 +00:00
Ævar Arnfjörð Bjarmason
08e09ce35e * Patch by Ivan Krstic to fix a parser test case 2006-03-26 02:38:01 +00:00
Gabriel Wicke
77552d6380 Don't place html in alt/title attributes, especially with thumbnails 2006-03-24 16:48:10 +00:00
Gabriel Wicke
660d9c0768 Handle {{/subpage}} properly 2006-03-24 16:44:52 +00:00
Gabriel Wicke
399e769852 Fix JS injection vulnerability and test case 2006-03-24 16:43:57 +00:00
Gabriel Wicke
8774b03482 Fix bug 2095: three closing brackets 2006-03-24 16:40:31 +00:00
Gabriel Wicke
e804f4543e Handle urls as external-url args 2006-03-24 16:38:34 +00:00
Gabriel Wicke
4dba7df627 This is actually the table special case, the other was about script being wrapped in a paragraph 2006-03-24 16:37:43 +00:00
Gabriel Wicke
2aa8892d8e Provide some cleanup if tidy is disabled:
* fix invalid nesting of anchors and i/b
* remove empty i/b tags
* remove divs inside anchors

Fixes several test cases
2006-03-24 16:36:29 +00:00
Tim Starling
91a98fcebc documentation 2006-03-22 04:57:14 +00:00
Brion Vibber
16047ca2b7 * Don't URL-decode in the title attribute for URL links; it can produce false
results that don't code back to their original values.
2006-03-17 01:02:14 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Rob Church
3cbd2f2916 (bug 5167) Add {{SUBPAGENAME}} variable 2006-03-04 23:29:46 +00:00
Lupin
3c75c6d69d (bug 4855) Section edit links now have the section name in the title attribute 2006-03-04 03:24:33 +00:00
Tim Starling
dae0538793 Fixed inappropriate access of $wgTitle from LanguageConverter.php. 2006-03-01 01:57:53 +00:00
Tim Starling
f605082c3d Documentation, plus two accessor functions that might be useful in parser extensions some day. I haven't updated the extensions yet, to maintain their compatibility with old versions of Parser.php. 2006-02-28 05:18:36 +00:00
Brion Vibber
2aaf98ef9d * (bug 5081) Remove bogus fix for invalid characters in links which simply
broke use of legitimate multiple whitespace characters in bracketed link.
Broken by Magnus's revision 1.593 of Parser.php, February 22 2006
2006-02-26 02:25:56 +00:00
Magnus Manske
f7705e25e5 fix for external links:
[url  text] (notice two or more spaces) now breaks according to parser test
I liked the previous behaviour better, but it doesn't strictly conform to wiki syntax
2006-02-22 09:05:25 +00:00
Magnus Manske
e353d4d94c "table with no data" fix 2006-02-22 08:37:14 +00:00
Brion Vibber
27e3ec2919 * Avoid corrupting <gallery> inside <!-- comment --> 2006-02-18 01:50:12 +00:00
Tim Starling
089357da44 Investigated tidy deadlock allegations, couldn't reproduce. 2006-02-07 11:05:00 +00:00
Magnus Manske
ee35f8c68c Fixing parser errors "no data" and "nothing but a caption".
This fix is cleaner than the first one; hopefully the test unit will recognize it
 this time...
2006-02-06 15:47:14 +00:00
Magnus Manske
f66128505d Fix for parser test "A table with no data" 2006-02-03 18:22:53 +00:00
Tim Starling
8949e26400 Bug 4549. "Temporary" means that it's cleared in parse() or some other frequently-called member function, which those two variables clearly weren't. They were in fact persistent. They should have been state variables. Also removed obsolete and unused transclusion code, which would have suffered the same problem if it was used. 2006-02-02 13:42:50 +00:00
Tim Starling
61bc10203f Various improvements to interwiki transclusion. Introduced {{raw:..}}, to force raw transclusion when subst: isn't in use. Referer header set in wfGetHTTP(), this could be for weak (honour-bound) detection of the external site, for statistics or license notices. 2006-02-01 04:41:53 +00:00
Tim Starling
8da9fca6c0 Fixes and improvements to interwiki transclusion:
* allow interwiki {{subst:...}} using action=raw fetches
* Allowed non-MSIE browsers to access action=raw via the article alias. This is necessary to allow action=raw transclusion, since the only known URL is the article path, not the script path.
* Specify a user agent in wfGetHttp() fetches, when using curl.
* Added transcache table to tables.sql, it was in the updater but not there for some reason.
* Fixed transcache expiry, added option
* Allow interwiki transclusion outside the template namespace using leading colon syntax. Syntax is counterintuitive at times, e.g. to subst the wikipedia main page you would use {{subst::Wikipedia:Main_Page}} not {{subst:Wikipedia::Main_Page}}.
2006-01-31 03:44:08 +00:00
Magnus Manske
1a1612fdfd Fix for bug 4783 : {{ns:0}} does not render 2006-01-28 21:44:57 +00:00
Tim Starling
eb53cc0856 * Added externallinks table, to track links to arbitrary URLs
* Convert unnecessary URL escape codes in external links to their equivalent
  character before doing anything with them. This prevents certain kinds of
  spam filter evasion. (Parser.php only)
2006-01-26 13:29:14 +00:00
Zheng Zhu
57fdee899c Fix dependence on hardcoded UNIQ_PREFIX. 2006-01-24 18:36:45 +00:00
Domas Mituzas
e9f40e54a4 allow to enable full tidy 2006-01-23 20:57:57 +00:00
Domas Mituzas
b12afe92bd whitespace, use member variable instead of function 2006-01-23 19:05:09 +00:00
Domas Mituzas
2d23e2a977 Tidy up only article views, previews, image pages and diffs. 2006-01-23 18:37:46 +00:00
Domas Mituzas
755bdff378 transformMsg profiling hook, shows when site messages suck 2006-01-14 03:08:04 +00:00
Ævar Arnfjörð Bjarmason
28e00611a7 * (bug 4594) date("W", ..) is zero padded in PHP5, not so in PHP4, removing
the padding
2006-01-13 16:10:12 +00:00
Rob Church
437c05eef1 Code cleanup in cleanSig
* Remove gratuitous whitespace and eliminate needless use of one-time variables
* Remove @static tag since it's not static-safe and isn't used like that any more
2006-01-13 09:47:09 +00:00
Rob Church
a6728ea575 Remove hack from signature clean-up code; implement the clean-up properly within preferences 2006-01-12 22:38:55 +00:00
Rob Church
3ad63cf6d6 Whitespace, per Brion 2006-01-12 21:11:11 +00:00
Rob Church
55c3e8a501 Whitespace, and flag hack 2006-01-12 20:56:55 +00:00
Rob Church
3b1eb35259 Slightly dirty hack to avoid a fatal PHP error when changing sig. I'll need to rethink this bit in SpecialPreferences, though. 2006-01-12 20:50:33 +00:00
Tim Starling
44ba2ff23b Fixed ~<includeonly>~</includeonly>~~, problem reported on enwiki village pump 2006-01-12 15:42:38 +00:00
Tim Starling
ba248c867d If a template is a redirect, register both titles in the templatelinks table. This ensures that the cache will be invalidated. 2006-01-11 02:19:41 +00:00
Ævar Arnfjörð Bjarmason
76e38c8594 * Added a Parser::getTags() accessor to get a list of parser extension tags,
for Special:Version
* Documentation
2006-01-08 15:13:37 +00:00
Ævar Arnfjörð Bjarmason
fc083890ea * Fixed a peer development oversight introduced in revision 1.564 by rob
- Didn't use the magic word class to match subst: in the sign*A*ture, as a
	result {{Subst:x}} would be turned into {{subst:Subst:x}} (no /i) and
    {{this_is_valid_subst_in_some_locale:x}} would be turned into
    {{subst:this...}}
2006-01-08 05:29:58 +00:00
Ævar Arnfjörð Bjarmason
07205d58f4 * Fixed bugs introduced in revision 1.566 by avar (see, I can make them too!)
- User::getOption() doesn't return bool, as a result all signitures were
    fancy, just use User::getBoolOption()
* Fixed stuff introduced in revision 1.564 by rob
  - User::getOption() output is pre-trimmed, no need for double-trimming
  - == => ===
  - the ternary op takes precedence over =, -()
2006-01-08 03:39:26 +00:00
Ævar Arnfjörð Bjarmason
16a3482481 * Fixed bugs introduced in revision 1.564 by rob ;)
- Changed back to using if $x === false, if ($x) is a logic error in this
    case because PHP thinks (among other things) that (int)0 and (string)0 are
	false, so a custom signiture that was "0" would fail
  - $nick was changed to $nickname in 1.564 in most places, but not all, as a
    result no fancy signiture worked (feature?;) and php vomited E_NOTICE
  - $name => $username, same thing as above, variable name change where not all
    of them were changed resulting in E_NOTICE etc. etc.
2006-01-08 03:09:31 +00:00
Rob Church
bc6984b10a * Change order of things in pre-save transform, so that the forced substitution in cleaned signatures will *do something*
* Remove now-redundant message from Language.php
* Improve signature validation in user preferences; poor XML causes the user to be screamed at; signatures still silent-cleaned upon changing
2006-01-07 23:37:40 +00:00
Rob Church
682e6e96e0 Cleanup signature handling
* Introduce a function to cleanup signatures [currently strips out ~~~, ~~~~ and ~~~~~, and forces transclusions to be substituted]
* Cleanup Parser::getUserSig()
* Minor cleanup on Parser::validateSig()
2006-01-07 23:09:21 +00:00
Magnus Manske
11eca563ed Fix for bug 2522 2006-01-07 22:33:54 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00