Skip to content

Commit 3537aa3

Browse files
Peterburnettkeevan
authored andcommitted
fix: improve wantsurl handling from loginpage list
1 parent 34c0b44 commit 3537aa3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

login.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
// @codingStandardsIgnoreEnd
3434
require('setup.php');
3535

36-
$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL); // Overrides $SESSION->wantsurl if given.
36+
// Get the wants if set. May be set as either wantsurl or wants from the button on the login page.
37+
$wantsurl = optional_param('wantsurl', '', PARAM_LOCALURL) ?: optional_param('wants', '', PARAM_LOCALURL);
3738
if ($wantsurl !== '') {
3839
// This is later used in core_login_get_return_url().
3940
$SESSION->wantsurl = (new moodle_url($wantsurl))->out(false);

version.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424

2525
defined('MOODLE_INTERNAL') || die();
2626

27-
$plugin->version = 2025040403; // The current plugin version (Date: YYYYMMDDXX).
28-
$plugin->release = 2025040403; // Match release exactly to version.
27+
$plugin->version = 2025040404; // The current plugin version (Date: YYYYMMDDXX).
28+
$plugin->release = 2025040404; // Match release exactly to version.
2929
$plugin->requires = 2024100700; // Requires Moodle 4.5
3030
$plugin->component = 'auth_saml2'; // Full name of the plugin (used for diagnostics).
3131
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)