diff --git a/SSO.php b/SSO.php index a6ac3f6..e0acf77 100644 --- a/SSO.php +++ b/SSO.php @@ -136,7 +136,7 @@ $responseparamsencoded = 'serverName=' . $servername . '&externalUserKey=' . urlencode($userkey) . '&expiration=' . $expiration; - $fullreturnurl = !empty($returnurl) ? '&ReturnUrl=' . $returnurl . $fragment : ""; + $fullreturnurl = !empty($returnurl) ? '&ReturnUrl=' . urlencode($returnurl) . $fragment : ""; $separator = (strpos($url, '?') ? '&' : '?'); $redirecturl = $url . $separator . $responseparamsencoded . '&authCode=' . $responseauthcode . $fullreturnurl; diff --git a/block_panopto.php b/block_panopto.php index 3b194ae..10fa0b2 100644 --- a/block_panopto.php +++ b/block_panopto.php @@ -162,7 +162,7 @@ public function get_content() { null, true); - $this->content->text = html_writer::tag('div', "" . + $this->content->text = html_writer::tag('div', "" . get_string('fetching_content', 'block_panopto') . '', $params); $this->content->text .= '