Skip to content

Commit 0d8c46e

Browse files
committed
index: use https where possible
1 parent 99a37fa commit 0d8c46e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12-buster-slim as builder
1+
FROM docker.io/node:12-buster-slim as builder
22
LABEL author="Devin Matte <[email protected]>"
33

44
WORKDIR /usr/src/schedule
@@ -11,7 +11,7 @@ COPY assets ./assets
1111
RUN npm run-script build
1212

1313

14-
FROM php:7.3-apache
14+
FROM docker.io/php:7.3-apache
1515
LABEL author="Devin Matte <[email protected]>"
1616

1717
RUN echo "deb-src http://deb.debian.org/debian buster main" >> /etc/apt/sources.list

index.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
require_once('./inc/databaseConn.php');
2727
require_once('./inc/timeFunctions.php');
2828

29-
// Strips the 'http:' from the root address so it can work on SSL.
30-
$ASSETROOTADDRESS = substr($HTTPROOTADDRESS, 5);
29+
// Strips the 'http(s):' from the root address so it can work on SSL.
30+
$ASSETROOTADDRESS = substr($HTTPROOTADDRESS, strpos($HTTPROOTADDRESS, ":") + 1);
3131

3232
// HACK FOR OPEN-GRAPH TAGS, I KNOW, THIS IS TERRIBLE
3333
$path = explode('/', $_SERVER['REQUEST_URI']);
@@ -44,7 +44,7 @@
4444
//OLD header.inc
4545
?>
4646
<!DOCTYPE html>
47-
<html prefix="og: http://ogp.me/ns#" ng-app="sm" lang="en">
47+
<html prefix="og: https://ogp.me/ns#" ng-app="sm" lang="en">
4848
<head>
4949
<title><?= (!empty($TITLE)) ? $TITLE . " - " : "" ?>Schedule Maker</title>
5050

@@ -66,7 +66,7 @@
6666
<meta property="og:title" content="<?= (!empty($TITLE)) ? $TITLE . " - " : "" ?>ScheduleMaker" />
6767
<meta property="og:type" content="website" />
6868
<meta property="og:description" content="CSH ScheduleMaker makes picking your RIT class schedule easy! Preview all permutations of your schedule, browse available courses, and search for any course, all with ScheduleMaker.">
69-
<meta property="og:url" content="http://<?= $_SERVER['HTTP_HOST'] ?><?= $_SERVER['REQUEST_URI'] ?>" />
69+
<meta property="og:url" content="https://<?= $_SERVER['HTTP_HOST'] ?><?= $_SERVER['REQUEST_URI'] ?>" />
7070
<? if(!empty($IMGURL)) { ?>
7171
<meta property="og:image" content="<?= $IMGURL ?>" />
7272
<? } else { ?>
@@ -100,20 +100,20 @@
100100
</div>
101101
<footer class="main default">
102102
<div class="container">
103-
<div class="csh"><a target="_blank" rel="noopener" href="http://www.csh.rit.edu/"><img width="90" src="<?=$ASSETROOTADDRESS?>img/csh_logo_square.svg" alt="CSH" /></a></div>
103+
<div class="csh"><a target="_blank" rel="noopener" href="https://www.csh.rit.edu/"><img width="90" src="<?=$ASSETROOTADDRESS?>img/csh_logo_square.svg" alt="CSH" /></a></div>
104104
<a target="_blank" rel="noopener" href="https://github.com/ComputerScienceHouse/schedulemaker">Version: <?=$APP_VERSION?></a> | <a ui-sref="help">Help</a> | <a href="/status">Status</a> | <a target="_blank" rel="noopener" href="https://github.com/ComputerScienceHouse/schedulemaker/issues">Report Issues</a>
105105
<div>
106106
Development v3.1: Devin Matte (matted at csh.rit.edu)<br>
107107
Development v3: Ben Grawi (bgrawi at csh.rit.edu)<br>
108108
Development v2: Ben Russell (benrr101 at csh.rit.edu)<br>
109109
Idea: John Resig (phytar at csh.rit.edu)<br>
110-
Hosting: <a href="http://www.csh.rit.edu/">Computer Science House</a><br>
110+
Hosting: <a href="https://www.csh.rit.edu/">Computer Science House</a><br>
111111
</div>
112112
</div>
113113
</footer>
114114
<footer class="main print">
115115
Made Using <a href='<?= $HTTPROOTADDRESS ?>'>CSH ScheduleMaker</a>
116-
<a target="_blank" rel="noopener" href="http://www.csh.rit.edu/"><img height="25" src="/img/csh_print.png"></a>
116+
<a target="_blank" rel="noopener" href="https://www.csh.rit.edu/"><img height="25" src="/img/csh_print.png"></a>
117117
</footer>
118118
</div>
119119
<!-- LOAD SCRIPTS LAST -->

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"config": {
4848
"stateVersion": 1
4949
},
50-
"homepage": "http://schedule.csh.rit.edu",
50+
"homepage": "https://schedule.csh.rit.edu",
5151
"devDependencies": {
5252
"@datadog/browser-rum": "^3.6.10",
5353
"@types/angular": "1.5",

0 commit comments

Comments
 (0)