Skip to content

Commit

Permalink
Don't bother allowing data:png, data:gif, etc.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk authored Nov 1, 2020
1 parent 5d65220 commit 2dfe229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexer.pest
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ table_start = { "|"? ~ table_marker ~ ("|" ~ table_marker)* ~ "|"? ~ table_space
table_cell_end = { "|" ~ table_spacechar* ~ table_newline? }
table_row_end = { table_spacechar* ~ table_newline }

dangerous_url = { "data:" ~ "image/"? ~ !("png" | "gif" | "jpeg" | "webp") | "javascript:" | "vbscript:" | "file:" }
dangerous_url = { "data:" ~ !("image/" ~ ("png" | "gif" | "jpeg" | "webp")) | "javascript:" | "vbscript:" | "file:" }

0 comments on commit 2dfe229

Please sign in to comment.