Minor bugfixes, new logo
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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">
|
||||
|
||||
@@ -27,11 +27,11 @@ export function generateResultsPdf() {
|
||||
// Title and image
|
||||
doc.setFontSize(48)
|
||||
doc.text("EventMaster", midPage, 25, { align: "center" })
|
||||
doc.addImage("../../public/logo.png", "PNG", 65, 36, 80, 80)
|
||||
doc.addImage("http://localhost:3000/static/brand/logo.png", "PNG", 82, 36, 48, 48)
|
||||
|
||||
// Data about student
|
||||
doc.setFontSize(24)
|
||||
doc.text([preferencesStore.studentName, preferencesStore.registrationNumber], midPage, 130, { align: "center" })
|
||||
doc.text([preferencesStore.studentName, preferencesStore.registrationNumber], midPage, 100, { align: "center" })
|
||||
|
||||
// Progress total
|
||||
doc.setFontSize(28)
|
||||
@@ -41,13 +41,13 @@ export function generateResultsPdf() {
|
||||
}
|
||||
|
||||
return counter
|
||||
}, 0) + " von 10 Aufgaben gelöst.", midPage, 160, { align: "center" })
|
||||
}, 0) + " von " + exerciseStore.exercises.length + " Aufgaben gelöst", midPage, 130, { align: "center" })
|
||||
|
||||
|
||||
// Progress table
|
||||
doc.setFontSize(22)
|
||||
autoTable(doc, {
|
||||
startY: 170,
|
||||
startY: 140,
|
||||
head: [[ "Aufgaben-Nr.", "Aufgabengruppe", "Aufgabe", "Abgeschlossen?"]],
|
||||
body: exerciseData
|
||||
})
|
||||
|
||||
@@ -45,7 +45,7 @@ export const useSearchStore = defineStore("searchStore", {
|
||||
exerciseStore.solveExercise(2, 2)
|
||||
} else if (this.searchTerm.includes("'); UPDATE Accounts SET accountRoleId = 2 WHERE username = ")) {
|
||||
exerciseStore.solveExercise(2, 3)
|
||||
} else if (this.searchTerm.includes("'); DELETE FROM Ratings WHERE rating = 5;")) {
|
||||
} else if (this.searchTerm.includes("'); DELETE FROM Ratings WHERE rating = 5; --")) {
|
||||
exerciseStore.solveExercise(2, 5)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user