changes like
- xss vuln - docker shit + nix shit
This commit is contained in:
parent
84136f1106
commit
57fd472eda
10 changed files with 131 additions and 48 deletions
|
@ -144,7 +144,10 @@ impl Pasta {
|
|||
}
|
||||
|
||||
pub fn content_escaped(&self) -> String {
|
||||
self.content.replace('`', "\\`").replace('$', "\\$")
|
||||
self.content
|
||||
.replace('`', "\\`")
|
||||
.replace('$', "\\$")
|
||||
.replace("</script", "<\\/script")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue