- urlEncode meetingID to calculate checksum properly

This commit is contained in:
Richard Alam 2010-05-27 14:56:56 -04:00
parent d4ac169771
commit 56ee75fcc2
2 changed files with 10 additions and 10 deletions

3
bigbluebutton-web/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
bigbluebutton-0.63.war
stacktrace.log
lib

View File

@ -54,12 +54,8 @@ public String getJoinURL(String username, String meetingID) {
if (doc.getElementsByTagName("returncode").item(0).getTextContent()
.trim().equals("SUCCESS")) {
//
// Now create a URL to join that meeting
//
String join_parameters = "meetingID=" + meetingID + "&fullName=" + urlEncode(username)
+ "&password=mp";
String join_parameters = "meetingID=" + urlEncode(meetingID) + "&fullName=" + urlEncode(username)
+ "&password=" + urlEncode(password);
return base_url_join + join_parameters + "&checksum=" + checksum("join" + join_parameters + salt);
@ -75,7 +71,8 @@ public String getJoinURL(String username, String meetingID) {
public String getJoinURLViewer(String username, String meetingID) {
String base_url_join = BigBlueButtonURL + "api/join?";
String join_parameters = "meetingID=" + meetingID + "&fullName=" + urlEncode(username)
String join_parameters = "meetingID=" + urlEncode(meetingID) + "&fullName=" + urlEncode(username)
+ "&password=ap";
return base_url_join + join_parameters + "&checksum=" + checksum("join" + join_parameters + salt);