Skip to content

Commit

Permalink
Bug fix large class size going over max vars
Browse files Browse the repository at this point in the history
Bug fix missing addslashes in assessment lookup
  • Loading branch information
drlippman committed Jan 28, 2014
1 parent b288078 commit a384adc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ AddType application/vnd.ms-excel.template.macroEnabled.12 xltm
AddType application/vnd.openxmlformats-officedocument.spreadsheetml.template xltx
Options -Indexes
php_value upload_max_filesize 10M
php_value max_input_vars 5000
3 changes: 2 additions & 1 deletion msgs/viewmsg.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ function showtrimmed(el) {
echo " <a href=\"mailto:{$line['email']}\">email</a> | ";
echo " <a href=\"$imasroot/course/gradebook.php?cid={$line['courseid']}&stu={$line['msgfrom']}\" target=\"_popoutgradebook\">gradebook</a>";
if (preg_match('/Question\s+about\s+#(\d+)\s+in\s+(.*)\s*$/',$line['title'],$matches)) {
$query = "SELECT id FROM imas_assessments WHERE name='{$matches[2]}' AND courseid='{$line['courseid']}'";
$aname = addslashes($matches[2]);
$query = "SELECT id FROM imas_assessments WHERE name='$aname' AND courseid='{$line['courseid']}'";
$res = mysql_query($query) or die("Query failed : $query " . mysql_error());
if (mysql_num_rows($res)>0) {
$aid = mysql_result($res,0,0);
Expand Down

0 comments on commit a384adc

Please sign in to comment.