mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-23 11:37:02 -04:00
fix: Solve codeql security issues
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
711b520421
commit
7f6da650d1
9 changed files with 17 additions and 32 deletions
|
@ -34,17 +34,17 @@ describe('Replace youtube link', () => {
|
|||
})
|
||||
|
||||
it("won't detect an invalid(too short) youtube id", () => {
|
||||
const invalidUrl = '${origin}?v=1'
|
||||
const invalidUrl = `${origin}?v=1`
|
||||
expect(markdownIt.renderInline(invalidUrl)).toBe(invalidUrl)
|
||||
})
|
||||
|
||||
it("won't detect an invalid(invalid characters) youtube id", () => {
|
||||
const invalidUrl = '${origin}?v= /!#/'
|
||||
const invalidUrl = `${origin}?v= /!#/`
|
||||
expect(markdownIt.renderInline(invalidUrl)).toBe(invalidUrl)
|
||||
})
|
||||
|
||||
it("won't detect an invalid(too long) youtube id", () => {
|
||||
const invalidUrl = '${origin}?v=111111111111111111111111111111111'
|
||||
const invalidUrl = `${origin}?v=111111111111111111111111111111111`
|
||||
expect(markdownIt.renderInline(invalidUrl)).toBe(invalidUrl)
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue