From ce7921ff4ef0774d83965321ccb581d2a3d50793 Mon Sep 17 00:00:00 2001 From: Richard Leherpeur Date: Wed, 26 Feb 2020 20:51:48 -0600 Subject: [PATCH] Trim invite-id as it sometimes contains an extra leading and trailing space --- scormcloud/scormcloudcontenthandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scormcloud/scormcloudcontenthandler.php b/scormcloud/scormcloudcontenthandler.php index 20dcdd0..dc4b088 100644 --- a/scormcloud/scormcloudcontenthandler.php +++ b/scormcloud/scormcloudcontenthandler.php @@ -29,7 +29,7 @@ public static function make_blog_entry( $content ) { $is_valid_account = false; } - $invite_id = substr( $tag_string, 21, strlen( $tag_string ) - 22 ); + $invite_id = trim(substr( $tag_string, 21, strlen( $tag_string ) - 22 )); $invite = ScormCloudDatabase::get_invitation( $invite_id ); if ( null === $invite ) {