mediawiki-extensions-Scribunto/engines/LuaCommon
Brad Jorsch 708d87c181 Prevent passing information between #invokes using math.random
It's possible to pass information between multiple #invokes on a page by
having the first call math.randomseed with one of a set of known seeds
and then having the second examine the output from math.random to
determine which of those known seeds was used.

Prevent that by calling math.randomseed( 1 ) when invoking (see the bug
for details on why that seed). But avoid doing so if e.g. a
frame:expandTemplate() call results in a recursive invoke.

Bug: 62291
Change-Id: Id01cb63eca52ced29bf4efebc38beb9f159b7b0e
2014-04-01 13:46:09 -04:00
..
lualib Prevent passing information between #invokes using math.random 2014-04-01 13:46:09 -04:00
HtmlLibrary.php Add mw.html to Scribunto 2014-01-03 00:04:34 +01:00
LanguageLibrary.php mw.language: Fix exceptions and add tests 2014-03-09 02:56:06 +00:00
LibraryBase.php Clean up title handling for defaultUrl 2013-02-07 15:45:49 -05:00
LuaCommon.php Improve invalid title error message 2014-03-11 17:06:23 +00:00
LuaInterpreter.php (bug 45684) Don't count argument parsing time towards Lua limit 2013-03-12 03:18:05 +00:00
MessageLibrary.php Remove leftover code for titles in messages 2014-03-18 13:52:51 -04:00
SiteLibrary.php Properly handle spaces/underscores in mw.site.namespaces 2013-10-31 11:09:16 -04:00
TextLibrary.php Improve mw.text.nowiki 2013-09-03 17:36:36 -04:00
TitleLibrary.php Add protectionLevels variable to mw.title output 2014-01-15 14:53:18 -05:00
UriLibrary.php Clean up argument lists 2013-03-04 14:55:46 -05:00
UstringLibrary.php Fix PHP implementation of mw.ustring %W 2014-02-10 00:45:46 +00:00