Skip to content

Commit

Permalink
Merge pull request #285 from OS4ED/user/sayan/2023-03-13
Browse files Browse the repository at this point in the history
Commit regarding fixing of the vulnerability issues
  • Loading branch information
sayan-os4ed authored Mar 13, 2023
2 parents 2e151c2 + 8e1cc5b commit dabb266
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/scheduling/ViewSchedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
unset($_SESSION['MassDrops.php']);
}
DrawBC("" . _scheduling . " > " . ProgramTitle());

if (isset($_REQUEST['marking_period_id']))
$_REQUEST['marking_period_id'] = sqlSecurityFilter($_REQUEST['marking_period_id']);

unset($sql);
$extra['search'] .= '<div class="row">';
$extra['search'] .= '<div class="col-lg-6">';
Expand Down Expand Up @@ -276,7 +280,7 @@
$QI = ($sql);
$wk_schedule_RET = DBGet(DBQuery('SELECT sp.PERIOD_ID,CONCAT(sp.START_TIME,\'' . ' - ' . '\',sp.END_TIME) AS TIME_PERIOD,sp.TITLE FROM school_periods sp WHERE sp.SYEAR=\'' . UserSyear() . '\' AND sp.SCHOOL_ID = \'' . UserSchool() . '\' ORDER BY sp.SORT_ORDER'), array('TIME_PERIOD' => '_makeTimePeriod'));

$mp_start_date = DBGET(DBQuery('SELECT start_date FROM marking_periods WHERE MARKING_PERIOD_ID = ' . $_REQUEST['marking_period_id']));
$mp_start_date = DBGET(DBQuery('SELECT start_date FROM marking_periods WHERE MARKING_PERIOD_ID = "' . $_REQUEST['marking_period_id'] . '"'));


$sql_week = 'SELECT acc.SCHOOL_DATE,cp.TITLE,cp.COURSE_PERIOD_ID,cp.TEACHER_ID,cpv.PERIOD_ID
Expand Down

0 comments on commit dabb266

Please sign in to comment.