diff options
author | Dennis Verspuij <dennisverspuij@users.noreply.github.com> | 2018-03-19 10:01:20 +0000 |
---|---|---|
committer | Dennis Verspuij <dennisverspuij@users.noreply.github.com> | 2018-03-19 10:01:20 +0000 |
commit | b525810c14a5602f11949a40529f6a809c29b679 (patch) | |
tree | c1a2431987f8bb6442fce60e96d98f96578ee349 /plugins | |
parent | 60a94dab22b6ff1fe414ba98b90dbaaf741cadef (diff) | |
download | Shaarli-b525810c14a5602f11949a40529f6a809c29b679.tar.gz Shaarli-b525810c14a5602f11949a40529f6a809c29b679.tar.zst Shaarli-b525810c14a5602f11949a40529f6a809c29b679.zip |
Fix removal of on=... attributes from html generated from markdown
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/markdown/markdown.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/markdown/markdown.php b/plugins/markdown/markdown.php index 6b4aabf3..2f24e417 100644 --- a/plugins/markdown/markdown.php +++ b/plugins/markdown/markdown.php | |||
@@ -288,7 +288,7 @@ function sanitize_html($description) | |||
288 | $description); | 288 | $description); |
289 | } | 289 | } |
290 | $description = preg_replace( | 290 | $description = preg_replace( |
291 | '#(<[^>]+)on[a-z]*="?[^ "]*"?#is', | 291 | '#(<[^>]+\s)on[a-z]*="?[^ "]*"?#is', |
292 | '$1', | 292 | '$1', |
293 | $description); | 293 | $description); |
294 | return $description; | 294 | return $description; |