Skip to content

Commit 2485bc3

Browse files
Merge pull request #366 from ComputerScienceHouse/fix-ntid-classes
Fix ntid classes
1 parent 52f58d9 commit 2485bc3

File tree

5 files changed

+922
-3
lines changed

5 files changed

+922
-3
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,3 @@ web.config
3737
vwd.webinfo
3838
WebEssentials-Settings.json
3939
vendor
40-
composer.lock

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ RUN npm run-script build
1414
FROM docker.io/php:7.3-apache
1515
LABEL author="Devin Matte <matted@csh.rit.edu>"
1616

17-
RUN echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list
17+
RUN echo "deb-src http://archive.debian.org/debian buster main" >> /etc/apt/sources.list
1818

1919
RUN apt-get -yq update && \
2020
apt-get -yq install \
@@ -59,6 +59,8 @@ RUN a2enmod rewrite && a2enmod headers && a2enmod expires && \
5959
sed -i '/Listen/{s/\([0-9]\+\)/8080/; :a;n; ba}' /etc/apache2/ports.conf && \
6060
chmod og+rwx /var/lock/apache2 && chmod -R og+rwx /var/run/apache2
6161

62+
RUN git config --global --add safe.directory /var/www/html
63+
6264
COPY . /var/www/html
6365
COPY --from=builder /usr/src/schedule/assets/prod /var/www/html/assets/prod
6466

api/generate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function ajaxErrorHandler($errno, $errstr, $errfile, $errline) {
6767
}
6868

6969
$course = strtoupper($course);
70-
preg_match('/([A-Z]{4})[-\s]*(\d{0,3}[A-Z]?)?(?:[-\s]+(\d{0,2}[A-Z]?\d?))?/', $course, $courseParts);
70+
preg_match('/([A-Z0-9]{4})[-\s]*(\d{0,3}[A-Z]?)?(?:[-\s]+(\d{0,2}[A-Z]?\d?))?/', $course, $courseParts);
7171

7272
// Query base: Noncancelled courses from the requested term
7373
$query = "SELECT s.id

0 commit comments

Comments
 (0)