Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
98a2c1a3
Commit
98a2c1a3
authored
10 years ago
by
Jesus Federico
Browse files
Options
Downloads
Patches
Plain Diff
Fixed an issue happening when custom parameters were not included
parent
e4c461c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bbb-lti/grails-app/controllers/org/bigbluebutton/ToolController.groovy
+8
-8
8 additions, 8 deletions
...s-app/controllers/org/bigbluebutton/ToolController.groovy
with
8 additions
and
8 deletions
bbb-lti/grails-app/controllers/org/bigbluebutton/ToolController.groovy
+
8
−
8
View file @
98a2c1a3
...
...
@@ -246,17 +246,17 @@ class ToolController {
log
.
debug
"Localized default welcome message: ["
+
welcome
+
"]"
// Check for [custom_]welcome parameter being passed from the LTI
if
(
params
.
get
(
Parameter
.
CUSTOM_WELCOME
)
!=
null
)
{
if
(
params
.
containsKey
(
Parameter
.
CUSTOM_WELCOME
)
&&
params
.
get
(
Parameter
.
CUSTOM_WELCOME
)
!=
null
)
{
welcome
=
params
.
get
(
Parameter
.
CUSTOM_WELCOME
)
+
"<br>"
log
.
debug
"Overriding default welcome message with: ["
+
welcome
+
"]"
}
if
(
Boolean
.
parseBoolean
(
params
.
get
(
Parameter
.
CUSTOM_RECORD
))
)
{
if
(
params
.
containsKey
(
Parameter
.
CUSTOM_RECORD
)
&&
Boolean
.
parseBoolean
(
params
.
get
(
Parameter
.
CUSTOM_RECORD
))
)
{
welcome
+=
"<br><b>"
+
message
(
code:
"bigbluebutton.welcome.record"
)
+
"</b><br>"
log
.
debug
"Adding record warning to welcome message, welcome is now: ["
+
welcome
+
"]"
}
if
(
Integer
.
parseInt
(
params
.
get
(
Parameter
.
CUSTOM_DURATION
))
>
0
)
{
if
(
params
.
containsKey
(
Parameter
.
CUSTOM_DURATION
)
&&
Integer
.
parseInt
(
params
.
get
(
Parameter
.
CUSTOM_DURATION
))
>
0
)
{
welcome
+=
"<br><b>"
+
message
(
code:
"bigbluebutton.welcome.duration"
,
args:
[
params
.
get
(
Parameter
.
CUSTOM_DURATION
)])
+
"</b><br>"
log
.
debug
"Adding duration warning to welcome message, welcome is now: ["
+
welcome
+
"]"
}
...
...
@@ -282,11 +282,11 @@ class ToolController {
* @param the HTTP request parameters
* @return the key:val pairs needed for Basic LTI
*/
private
Properties
sanitizePrametersForBaseString
(
Object
params
)
{
private
Properties
sanitizePrametersForBaseString
(
params
)
{
log
.
debug
params
Properties
reqProp
=
new
Properties
();
for
(
String
key
:
((
Map
<
String
,
String
>)
params
)
.
keySet
())
{
if
(
key
==
"action"
||
key
==
"controller"
)
{
for
(
String
key
:
params
.
keySet
())
{
if
(
key
==
"action"
||
key
==
"controller"
||
key
==
"format"
)
{
// Ignore as these are the grails controller and action tied to this request.
continue
}
else
if
(
key
==
"oauth_signature"
)
{
...
...
@@ -297,7 +297,7 @@ class ToolController {
continue
}
reqProp
.
setProperty
(
key
,
((
Map
<
String
,
String
>)
params
)
.
get
(
key
));
reqProp
.
setProperty
(
key
,
params
.
get
(
key
));
}
return
reqProp
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment