X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Factions%2FRawAction.php;h=c9d0ae968fc9833e56c4d5ddbe059584d1ddfd59;hp=77a8b14e2c2c04a04e8e3df3528678ddef2d385e;hb=a38af7ba26579bb3004f673e44d39710887763aa;hpb=14e0c6af8321f8261b539b19b91e383b5a660dc8 diff --git a/includes/actions/RawAction.php b/includes/actions/RawAction.php index 77a8b14e2c..c9d0ae968f 100644 --- a/includes/actions/RawAction.php +++ b/includes/actions/RawAction.php @@ -116,10 +116,10 @@ class RawAction extends FormlessAction { $elevatedText = $elevated ? 'by elevated ' : ''; $log = LoggerFactory::getInstance( "security" ); $log->warning( - "Unsafe JS/CSS/Json $elevatedText" . "load - {user} loaded {title} with {ctype}", + "Unsafe JS/CSS/Json {$elevatedText}load - {user} loaded {title} with {ctype}", [ 'user' => $this->getUser()->getName(), - 'title' => $title->getPrefixedDBKey(), + 'title' => $title->getPrefixedDBkey(), 'ctype' => $contentType, 'elevated' => $elevated ] @@ -147,7 +147,7 @@ class RawAction extends FormlessAction { $log->info( "Blocked loading unprotected JS {title} for {user}", [ 'user' => $this->getUser()->getName(), - 'title' => $title->getPrefixedDBKey(), + 'title' => $title->getPrefixedDBkey(), ] ); throw new HttpError( 403, wfMessage( 'unprotected-js' ) ); @@ -215,7 +215,7 @@ class RawAction extends FormlessAction { // section not found (or section not supported, e.g. for JS, JSON, and CSS) $text = false; } else { - $text = $content->getNativeData(); + $text = $content->getText(); } } }