Skip to content

Commit

Permalink
encoded redirect url
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansharmasitoula committed Dec 4, 2023
1 parent ba9a795 commit 4629203
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public function redirect_to_tsb_link()
$baseUrl = $CFG->wwwroot;
$path = "/mod/quiz/view.php?id=" . $PAGE->cm->id;
$redirectURL = $baseUrl . $path;
$tsblink = "https://pages.talview.com/tsb/index.html?redirect_url=" . $redirectURL . "&user=" . $_SERVER ['HTTP_USER_AGENT'];
$tsblink = "https://pages.talview.com/tsb/index.html?redirect_url=" . urlencode($redirectURL) . "&user=" . urlencode($_SERVER['HTTP_USER_AGENT']);
$PAGE->requires->js_amd_inline('
require(["jquery"], function($) {
$(document).ready(function() {
Expand Down

0 comments on commit 4629203

Please sign in to comment.