changes like

- xss vuln
- docker shit
+ nix shit
This commit is contained in:
Schrottkatze 2023-02-17 11:28:09 +01:00
parent 84136f1106
commit 57fd472eda
10 changed files with 131 additions and 48 deletions

View file

@ -144,7 +144,10 @@ impl Pasta {
}
pub fn content_escaped(&self) -> String {
self.content.replace('`', "\\`").replace('$', "\\$")
self.content
.replace('`', "\\`")
.replace('$', "\\$")
.replace("</script", "<\\/script")
}
}