mirror of
https://github.com/frappe/lms.git
synced 2026-04-30 12:49:26 +03:00
fix: better sanitization of form fields
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
</template>
|
||||
<script setup lang="ts">
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { escapeHTML } from '@/utils'
|
||||
import { sanitizeHTML } from '@/utils'
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
@@ -213,7 +213,7 @@ const fetchTestCases = () => {
|
||||
}
|
||||
|
||||
const validateTitle = () => {
|
||||
exercise.value.title = escapeHTML(exercise.value.title.trim())
|
||||
exercise.value.title = sanitizeHTML(exercise.value.title.trim())
|
||||
}
|
||||
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user