Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LabNbook
LabNbook-Moodle
Commits
909d68c1
Verified
Commit
909d68c1
authored
Jun 24, 2021
by
David Beniamine
Browse files
Use param raw as base64 can contain non alphanum chars
parent
6f9d3d0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
user-binding.php
View file @
909d68c1
...
@@ -11,7 +11,7 @@ use mod_labnbook\fetch;
...
@@ -11,7 +11,7 @@ use mod_labnbook\fetch;
require_once
\
dirname
(
__DIR__
,
2
)
.
'/config.php'
;
require_once
\
dirname
(
__DIR__
,
2
)
.
'/config.php'
;
$returnUrl
=
\
base64_decode
(
required_param
(
'return'
,
PARAM_
ALPHANUM
));
$returnUrl
=
\
base64_decode
(
required_param
(
'return'
,
PARAM_
RAW
));
$courseid
=
required_param
(
'courseid'
,
PARAM_INT
);
$courseid
=
required_param
(
'courseid'
,
PARAM_INT
);
$course
=
$DB
->
get_record
(
'course'
,
[
'id'
=>
$courseid
],
'*'
,
MUST_EXIST
);
$course
=
$DB
->
get_record
(
'course'
,
[
'id'
=>
$courseid
],
'*'
,
MUST_EXIST
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment