Minor bugfixes, new logo

This commit is contained in:
2024-11-20 19:20:22 +01:00
parent 4b4517cc4b
commit 836c5c5d1c
13 changed files with 179 additions and 371 deletions

View File

@@ -52,11 +52,19 @@ watch(() => route.path, () => {
<!-- Logic to check, if exercise 3.1 is solved -->
<div v-for="query in route.query">
<span v-if="String(query).startsWith('<img src=1 onerror=alert(')">
<span
v-if="String(query).indexOf('<img src=1 onerror=') != -1 &&
String(query).indexOf('alert(') != -1 &&
String(query).indexOf('Hello World') != -1"
>
{{ exerciseStore.solveExercise(3, 1) }}
</span>
<span v-if="String(query).startsWith('<img src=1 onerror=import(')">
<span
v-if="String(query).indexOf('<img src=1 onerror=') != -1 &&
String(query).indexOf('import(') != -1 &&
String(query).indexOf('http://localhost:3000/static/scripts/test.js') != -1"
>
{{ exerciseStore.solveExercise(3, 2) }}
</span>
</div>

View File

@@ -9,7 +9,7 @@
class="mr-5"
to="/"
>
<v-img src="logo.png" width="80" />
<v-img src="http://localhost:3000/static/brand/logo.png" width="80" />
</v-card>
<div class="d-md-none">