Commit graph

504 commits

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason
c62b79d3e3 * Pluralform => Plural 2005-09-06 17:02:19 +00:00
Alexander Sigachov
b7b513f611 New magic word: PLURALFORM (like GRAMMAR) 2005-09-05 19:22:09 +00:00
Brion Vibber
ee14af4672 * Security fix for <math>
* Security fix for tables
2005-08-29 23:34:37 +00:00
Brion Vibber
1c21932d37 * (bug 3244) Fix remote image loading hack, JavaScript injection on MSIE 2005-08-23 21:49:48 +00:00
Tim Starling
eb766bf038 removed unused function 2005-08-20 15:46:44 +00:00
Tim Starling
c5f40fad84 oops, randomly deleted character 2005-08-20 15:37:57 +00:00
Tim Starling
5eb9056704 Fixed odd breakage of templates involving '<span class="{{foo}}">{{bar}}</span>'. {{bar}} was expanded without any arguments passed from the parent page. The problem was $this->mAssocArgs being overwritten by the call to replaceVariables() from within Sanitizer::removeHTMLtags(), and thus subtly corrupted for the subsequent call from braceSubstitution() itself. I've forgotten why I made that a class member in the first place, but making it a local instead doesn't break any parser tests, so it's a sufficient solution as far as I'm concerned. 2005-08-20 15:28:53 +00:00
Tim Starling
eea00a79be With the introduction of action=render, internal links may also contain http://, and so must be hardened against replacement by replaceExternalLinks in the same way as interwiki links. 2005-08-20 13:47:12 +00:00
Rowan Collins
f19c94aa72 Fix manual thumbnail syntax to use a proper "MagicWord" (MAG_IMG_MANUALTHUMB) rather than a weird hack. 2005-08-20 13:27:21 +00:00
Rowan Collins
96b9814683 (Bug 3090) mask all external links in image captions against double-parsing, rather than just http:// ones 2005-08-20 12:44:32 +00:00
Tim Starling
5dd5121b58 fixed template redirects 2005-08-20 11:41:27 +00:00
Tim Starling
28b2b4b2f5 Always use reference assignment when taking the return value of wfGetDB(), or else annoying bugs which are difficult to track down will result. Example of correct usage:
$dbr =& wfGetDB( DB_SLAVE );
2005-08-15 13:06:33 +00:00
Ævar Arnfjörð Bjarmason
275fbe7f52 * Fixed a content loss bug that would occour if
$wgContLang->linkPrefixExtension() evaluated to true and the string being
  passed to Parser::replaceInternalLinks() matched msg:linkprefix
2005-08-08 11:11:55 +00:00
Tim Starling
002b7db854 <includeonly> and <noinclude> tags 2005-08-07 14:33:40 +00:00
Tim Starling
b14b1f132c disableCache function 2005-08-07 12:09:46 +00:00
Tim Starling
b031b7b131 Support for templates in <meta>, <meta> in templates, <meta> in templates in <meta>, and other such funky things 2005-08-02 15:42:03 +00:00
Niklas Laxström
7d4a95ab53 No references here, caused ugly by php notice 2005-08-01 23:58:51 +00:00
Tim Starling
49af5ce23b extra $this parameter for parser extension functions 2005-08-01 16:15:38 +00:00
Ævar Arnfjörð Bjarmason
3f026e7518 * Making a linkprefix message that hold the link prefix previously hardcoded
in the parser
2005-07-30 20:03:38 +00:00
Brion Vibber
c0a4dfc060 * Fix typo in undefined array index access prevention 2005-07-26 15:26:33 +00:00
Brion Vibber
9d4ad0468a * Spelling fix: $wgUrlProtcols -> $wgUrlProtocols 2005-07-25 13:38:54 +00:00
Tim Starling
7c900a732a profiling improvements and bug fixes 2005-07-25 07:00:20 +00:00
Jens Frank
cd7963fca7 (bug 2857) fixed parsing of lists in <pre> sections 2005-07-22 22:14:05 +00:00
Brion Vibber
b0c41ad13b * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3
* (bug 2931) Fix additional notices on reference use in PHP 4.4.0
2005-07-22 11:29:15 +00:00
Ævar Arnfjörð Bjarmason
1c757c8650 * (bug 431) Make external URL protocols configurable in DefaultSettings 2005-07-21 20:58:44 +00:00
Tim Starling
fcc4b040f0 fixed incorrect use of text->boolean conversion 2005-07-17 02:14:58 +00:00
Antoine Musso
8b1fc67ec4 Fix #460 : handle <center> as a block 2005-07-13 21:18:32 +00:00
Antoine Musso
12dbb2267d Fix #785 : properly get out of a <pre> element :p 2005-07-13 15:17:28 +00:00
Antoine Musso
73fc002516 Fix autonumbering that was broke following bug 787 fixing 2005-07-08 06:13:00 +00:00
Antoine Musso
b2ac0fc51c Fix #787 : External links being rendered. Tests cases at http://twenkill.dyndns.org/wiki/787 and http://test.leuksman.com/index.php/787 2005-07-08 05:54:16 +00:00
Niklas Laxström
22b7e7c831 * (bug 2534) Hide edit sections with CSS to make right click to edit section work
* Remove some unneeded stuff!?
2005-07-05 19:15:13 +00:00
River Tarnell
cb42120cc0 'floating right' option for quickbar in classic and cologne blue skins 2005-07-05 18:26:34 +00:00
River Tarnell
740b3ac49d tc_url -> varchar, limit url length 2005-07-03 07:48:04 +00:00
River Tarnell
847ef6554b fixes from live site 2005-07-03 07:39:49 +00:00
River Tarnell
2d61f91edf - proxy support for wfGetHTTP()
- support for interwiki transcludes (disabled by default, keyed on iw_trans)
2005-07-03 07:15:53 +00:00
Brion Vibber
054ef12f51 * (bug 2658) Fix signature time, localtime to match timezone offset again 2005-07-03 02:08:12 +00:00
Tim Starling
d3caf604c1 Added hooks at various parser stages. Repaired neglected insertStripItem(). 2005-07-02 09:15:51 +00:00
Brion Vibber
d390ac8b92 * (bug 2567) Fix HTML escaping on category titles in list 2005-06-28 19:56:17 +00:00
Ævar Arnfjörð Bjarmason
e34aa50e13 * Removed a comment, "FIXME require in a foreach", require_once() will be
evaluated exactly once during execution (it has an effect similar to the
  static keyword), do demonstrate this behaviour run the code
    for ($i = 0; $i < 10; ++$i) require("file.txt");
  in a directory that has a file called 'file.txt' and then change require()
  to require_once();
2005-06-27 08:23:22 +00:00
Antoine Musso
6c52e611b7 quotes. Nice "require" in a foreach() need a fix ;) 2005-06-27 01:35:22 +00:00
Tim Starling
9acfb88be7 More interwiki mucking around -- isLocal() is not the opposite of isExternal()\! 2005-06-26 13:38:43 +00:00
Ævar Arnfjörð Bjarmason
76d3a0b5f3 * A new magic word, {{NUMBEROFFILES}}, returns the number of rows in the
image table
2005-06-26 03:23:24 +00:00
Brion Vibber
a2a28a34c1 * (bug 996) Replace $wgWhitelistEdit with 'edit' permission; fixup UPGRADE documentation about edit and read whitelists.
Patch by robla: http://bugzilla.wikimedia.org/attachment.cgi?id=645&action=view
plus doc fixes
2005-06-25 06:24:46 +00:00
Ævar Arnfjörð Bjarmason
9048d60b57 * Added a new magic word, {{SERVERNAME}}, that returns $wgServerName, useful
for things like bug 1825
2005-06-24 02:54:52 +00:00
Ævar Arnfjörð Bjarmason
0ecd7aa835 * MAG_PATH renamed to MAG_SCRIPTPATH 2005-06-20 11:06:33 +00:00
Brion Vibber
b115dd7442 * (bug 2462 etc) Taking out the experimental dash conversion; it broke too
many things for the current parser to handle cleanly
2005-06-20 04:56:59 +00:00
Ævar Arnfjörð Bjarmason
97cf74d1c9 * A new magic word, {{PATH}}, returns $wgScriptPath 2005-06-19 16:09:00 +00:00
Ævar Arnfjörð Bjarmason
6ab543b32d * Bah, this extracttags hack sucked 2005-06-18 01:23:20 +00:00
Ævar Arnfjörð Bjarmason
52c18763b9 * Moved $text alteration statement, should only be used when we're not
stripping comments.
2005-06-18 01:13:46 +00:00
Ævar Arnfjörð Bjarmason
798df26f95 * (bug 2374) Allow extension tags to be terminated empty elements
i.e. <extension/> instead of <extension></extension>, works for
  <extension foo=bar.../> too
2005-06-18 01:07:42 +00:00