diff options
author | Brian Evans <grknight@gentoo.org> | 2021-06-29 14:03:27 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2021-06-29 14:03:27 -0400 |
commit | 060582785357e189159e2c63da09335c567c0eeb (patch) | |
tree | 5e17e9e1f9571f3ce0ad3b5252c33fe5af492e80 | |
parent | GentooPackages: Correctly place the addModule per docs (diff) | |
download | extensions-060582785357e189159e2c63da09335c567c0eeb.tar.gz extensions-060582785357e189159e2c63da09335c567c0eeb.tar.bz2 extensions-060582785357e189159e2c63da09335c567c0eeb.zip |
CheckUser: Apply security fixes from upstream
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r-- | CheckUser/includes/CheckUserLogPager.php | 2 | ||||
-rw-r--r-- | CheckUser/includes/specials/SpecialCheckUser.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/CheckUser/includes/CheckUserLogPager.php b/CheckUser/includes/CheckUserLogPager.php index 433eb4c6..08644b3e 100644 --- a/CheckUser/includes/CheckUserLogPager.php +++ b/CheckUser/includes/CheckUserLogPager.php @@ -29,7 +29,7 @@ class CheckUserLogPager extends ReverseChronologicalPager { $user = Linker::userLink( $row->cul_user, $row->user_name ); $target = Linker::userLink( $row->cul_target_id, $row->cul_target_text ) . - Linker::userToolLinks( $row->cul_target_id, $row->cul_target_text ); + Linker::userToolLinks( $row->cul_target_id, trim( $row->cul_target_text ) ); $lang = $this->getLanguage(); $contextUser = $this->getUser(); diff --git a/CheckUser/includes/specials/SpecialCheckUser.php b/CheckUser/includes/specials/SpecialCheckUser.php index 1c73ce66..743065ba 100644 --- a/CheckUser/includes/specials/SpecialCheckUser.php +++ b/CheckUser/includes/specials/SpecialCheckUser.php @@ -2092,7 +2092,7 @@ class SpecialCheckUser extends SpecialPage { 'cul_reason' => $reason, 'cul_type' => $logType, 'cul_target_id' => $targetID, - 'cul_target_text' => $target, + 'cul_target_text' => trim( $target ), 'cul_target_hex' => $targetHex, 'cul_range_start' => $rangeStart, 'cul_range_end' => $rangeEnd |