瀏覽代碼

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

Yannick Warnier 14 年之前
父節點
當前提交
d1df6d0b9a
共有 1 個文件被更改,包括 2 次插入2 次删除
  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'];
 }
 ?>