Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 9213eed

Browse files
Fix security issue
1 parent b02f5a1 commit 9213eed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import auth from 'http-auth';
1616
dotenv.config();
1717
const numCPUs = os.cpus().length;
1818
let educationWebsite = fs.readFileSync(join(__dirname, 'education/index.html'));
19+
let loadingPage = fs.readFileSync(join(__dirname, 'education/load.html'));
1920
const blacklisted: string[] = [];
2021
fs.readFile(join(__dirname, 'blocklists/ADS.txt'), (err, data) => {
2122
if (err) {
@@ -159,7 +160,7 @@ if (cluster.isPrimary) {
159160
})
160161
);
161162
app.get('/loading', (req, res) => {
162-
return res.sendFile(join(__dirname, 'education/load.html'));
163+
return res.end(loadingPage)
163164
});
164165
app.post('/login-form', (req, res) => {
165166
let body = req.body;

0 commit comments

Comments
 (0)