Jack Phoenix has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/160221

Change subject: Missing $extension parameter for UploadBase::detectScript()
......................................................................

Missing $extension parameter for UploadBase::detectScript()

Bug: 65431
Change-Id: Iaa17425c33749148b01039311105afd8485e43fb
---
M SystemGifts/SpecialSystemGiftManagerLogo.php
M UserGifts/SpecialGiftManagerLogo.php
2 files changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SocialProfile 
refs/changes/21/160221/1

diff --git a/SystemGifts/SpecialSystemGiftManagerLogo.php 
b/SystemGifts/SpecialSystemGiftManagerLogo.php
index b4de528..789f7ef 100644
--- a/SystemGifts/SpecialSystemGiftManagerLogo.php
+++ b/SystemGifts/SpecialSystemGiftManagerLogo.php
@@ -717,7 +717,7 @@
                }
 
                # check for htmlish code and javascript
-               if ( UploadBase::detectScript( $tmpfile, $mime ) ) {
+               if ( UploadBase::detectScript( $tmpfile, $mime, $extension ) ) {
                        return Status::newFatal( 'uploadscripted' );
                }
 
diff --git a/UserGifts/SpecialGiftManagerLogo.php 
b/UserGifts/SpecialGiftManagerLogo.php
index 8597042..97ae453 100644
--- a/UserGifts/SpecialGiftManagerLogo.php
+++ b/UserGifts/SpecialGiftManagerLogo.php
@@ -699,7 +699,7 @@
                }
 
                # check for htmlish code and javascript
-               if ( UploadBase::detectScript( $tmpfile, $mime ) ) {
+               if ( UploadBase::detectScript( $tmpfile, $mime, $extension ) ) {
                        return Status::newFatal( 'uploadscripted' );
                }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/160221
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaa17425c33749148b01039311105afd8485e43fb
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SocialProfile
Gerrit-Branch: master
Gerrit-Owner: Jack Phoenix <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to