Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F23379
git.diff
Jackmcbarn (Jackmcbarn)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
Jackmcbarn
Dec 21 2014, 9:08 PM
2014-12-21 21:08:46 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
git.diff
View Options
diff --git a/engines/LuaCommon/LuaCommon.php b/engines/LuaCommon/LuaCommon.php
index 377d50b..770b1ee 100644
--- a/engines/LuaCommon/LuaCommon.php
+++ b/engines/LuaCommon/LuaCommon.php
@@ -937,13 +937,13 @@ class Scribunto_LuaError extends ScribuntoException {
if ( strval( $info['namewhat'] ) !== '' ) {
$function = wfMessage( 'scribunto-lua-in-function', $info['name'] );
in_array( 'content', $msgOptions ) ?
- $function = $function->inContentLanguage()->text() :
- $function = $function->text();
+ $function = $function->inContentLanguage()->escaped() :
+ $function = $function->escaped();
} elseif ( $info['what'] == 'main' ) {
$function = wfMessage( 'scribunto-lua-in-main' );
in_array( 'content', $msgOptions ) ?
- $function = $function->inContentLanguage()->text() :
- $function = $function->text();
+ $function = $function->inContentLanguage()->escaped() :
+ $function = $function->escaped();
} else {
// C function, tail call, or a Lua function where Lua can't
// guess the name
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22291
Default Alt Text
git.diff (1 KB)
Attached To
Mode
T85113: Function names aren't sanitized in Lua error backtraces
Attached
Detach File
Event Timeline
Log In to Comment