Jeroen De Dauw has submitted this change and it was merged.

Change subject: Trim whitespace from enrollment token on save
......................................................................


Trim whitespace from enrollment token on save

Bug 46873

Change-Id: Ib59aad556a8012e11bea80791476a88b22a40c70
---
M includes/actions/EditCourseAction.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Jeroen De Dauw: Verified; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/actions/EditCourseAction.php 
b/includes/actions/EditCourseAction.php
index 719d8b3..7d9424d 100644
--- a/includes/actions/EditCourseAction.php
+++ b/includes/actions/EditCourseAction.php
@@ -314,6 +314,10 @@
                        $value = wfTimestamp( TS_MW, strtotime( $value. ' UTC' 
) );
                }
 
+               if ( $name === 'token' ) {
+                       $value = trim( $value );
+               }
+
                return $value;
        }
 

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib59aad556a8012e11bea80791476a88b22a40c70
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/EducationProgram
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Jeroen De Dauw <[email protected]>
Gerrit-Reviewer: Ragesoss <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to