Skip to content

Commit 64153b5

Browse files
authored
Merge pull request #9 from beackers/security-patch-2
fix security bug
2 parents 3172af4 + 9fdeb58 commit 64153b5

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

myop.db

0 Bytes
Binary file not shown.

static/nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function addANav() {
4747
}
4848

4949
sel.addEventListener("change", () => {
50-
if (sel.value !== current) {
50+
if (sel.value !== current && acceptablePaths.includes(window.location.pathname)) {
5151
window.location.href = sel.value;
5252
}
5353
});

0 commit comments

Comments
 (0)