Browse Source

Fixing problem launching videoconference in classroom mode - fixes CT#1774

Yannick Warnier 14 years ago
parent
commit
d1df6d0b9a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/conference/index.php

+ 2 - 2
main/conference/index.php

@@ -5,8 +5,8 @@
  */
 require_once '../inc/global.inc.php'; 
 api_protect_course_script();
-//Not sure what values can be set here I just found that $_SESSION["roomType"] could be the string "conference" 
-if ($_GET['type'] == 'conference') {
+// Only allow conference or classroom modes. Others are likely to be attacks
+if ($_GET['type'] == 'conference' or $_GET['type'] == 'classroom') {
 	$_SESSION["roomType"] = $_GET['type'];
 }
 ?>