Sam Reed
12a9b1d2fb
More documentation tweaks and updates
2011-05-21 19:54:24 +00:00
Tim Starling
5eac114e5a
(bug 27093, CVE-2011-0047): Fixed CSS injection vulnerability. The StringUtils.php patch is by Roan, the Sanitizer.php patch is by me.
2011-02-01 22:36:43 +00:00
Alexandre Emsenhuber
6e2ecb581f
Fixed a doxygen warning
2010-10-02 14:23:26 +00:00
Niklas Laxström
2b042ba2ae
Mark the comment as documentation
2010-08-08 06:36:44 +00:00
Alexandre Emsenhuber
55234801e1
Fixed some doxygen warnings
2010-03-29 20:10:29 +00:00
Tim Starling
8b9bedbad7
Revert r61528, r61527, r61526, r61525, r61519, r61515, r61053, r61052 (Parser::doQuotes() rewrite). Lots of issues to discuss, needs more review than I have time to give it pre-1.16. I'll split it out to a branch.
2010-01-27 02:41:22 +00:00
Platonides
11f8b8390c
Step 4: Profit!!
...
Add and use PregSplitIterator instead of a direct preg_split.
Slower, but with an upper bound on memory usage.
2010-01-26 18:58:07 +00:00
Brion Vibber
5b5f7b30b3
Revert r40837, r40839, r40840 (bug 332 - broken UTF-8)
...
Char-by-char scan of all output will perform very poorly and fails to address the root problem of bad internal treatment of strings.
2008-09-15 17:51:53 +00:00
Fran Rogers
ad5f1acdb3
Fix for bug #332 - all UTF-8 output is now cleaned of invalid forms as defined by RFC 3629. All output from MediaWiki should now be valid UTF-8 in all circumstances.
2008-09-15 00:42:17 +00:00
Fran Rogers
3ad5bfb749
Fix for problems with r39414; LinkHolderArray::replaceInterwiki() was badly broken
2008-08-16 10:13:35 +00:00
Siebrand Mazeland
2dedbbdfa1
Revert r39414. Breaks processing links like [[:wikipedia:nl:User:Siebrand|Dutch language Wikipedia]]. It will add a comment like "<!--IWLINK 0-->" in the HTML output. Happens even if there is one such link on a page.
2008-08-16 09:33:11 +00:00
Tim Starling
c45292ac40
* In the parser: do link existence tests in batches of 1000. Avoids using excessive memory to store Title objects.
...
* Split link placeholder/replacement handling into a separate object, LinkHolderArray.
* Remove Title objects from LinkCache, they apparently weren't being used at all. Same unconstrained memory usage as the former $parser->mLinkHolders.
* Introduced ExplodeIterator -- a workalike for explode() which doesn't use a significant amount of memory
* Introduced StringUtils::explode() -- select whether to use the simulated or native explode() depending on how many items there are
* Migrated most instances of explode() in Parser.php to StringUtils::explode()
* Renamed some variables in Parser::doBlockLevels()
* In Parser.php: $fname => __METHOD__, Parser => self/__CLASS__, to support Parser_DiffTest more easily
* Doc update in includes/MessageCache.php for r39412
* MW_TITLECACHE_MAX => Title::CACHE_MAX, nicer name, easier to access from another module
2008-08-15 16:35:03 +00:00
Shinjiman
69dbeb97f1
* (bug 14604) Introduced the following features for the LanguageConverter: Multi-tag support, single conversion flag, remove conversion flag on a single page, description flag, variant name, multi-variant fallbacks.
...
patch by fdcn
* Added zh-mo and zh-my variants for the zh language
2008-06-26 03:00:34 +00:00
Siebrand Mazeland
79d5225c0e
* remove end of line whitespace
...
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00
Aryeh Gregor
a15c419b3d
Remove ?>'s from files. They're pointless, and just asking for people to mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.)
2007-06-29 01:19:14 +00:00
Antoine Musso
16558d1dbc
Added some comments to our classes.
2007-04-21 12:42:27 +00:00
Nick Jenkins
ae8554c45b
Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth.
2006-11-29 11:43:58 +00:00
Tim Starling
61af76f260
Implementation of delimiterReplace() with a behaviour much closer to that of the model regex. Tested using comparitive fuzz testing. The only known difference now is where the start delimiter ends with an initial substring of the end delimiter, e.g. the previously mentioned case of C-style comments.
2006-11-22 07:08:50 +00:00
Tim Starling
674f3561dd
profiling
2006-11-21 11:20:04 +00:00
Tim Starling
1d2dc36ac1
Collection of generic string functions and classes
2006-11-21 10:38:07 +00:00