Skip to content

Commit 74d6861

Browse files
committed
Fixes #76 Honor classes from being grouped with lab classes and Fixes #78 and related issues for internal server errors around UTF-8 encoding
1 parent 6c8abf1 commit 74d6861

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

api/entity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"course" => $course['course'],
5959
"department" => array("code" => $course['code'], "number" =>$course['number']),
6060
"title" => $course['title'],
61-
"description" => $course['description']
61+
"description" => htmlentities($course['description'])
6262
);
6363
}
6464

api/generate.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,12 @@ function timeStringToMinutes($str) {
186186

187187
/**
188188
* Checks if a section is a special section (lab/studio/etc)
189+
* Now also ignores "H" for honors classes, which are separate
189190
* @param $courseInfo
190191
* @return int
191192
*/
192193
function isSpecialSection($courseInfo) {
193-
return preg_match('/[A-Z]\d{0,2}$/', $courseInfo['courseNum']) === 1;
194+
return preg_match('/[A-GI-Z]\d{0,2}$/', $courseInfo['courseNum']) === 1;
194195
}
195196

196197
/**

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "schedulemaker",
3-
"version": "3.0.13",
3+
"version": "3.0.14",
44
"private": true,
55
"description": "A course database lookup tool and schedule building web application for use at Rochester Institute of Technology.",
66
"main": "index.php",

0 commit comments

Comments
 (0)