aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2018-03-26 18:55:41 +0200
committerGitHub <noreply@github.com>2018-03-26 18:55:41 +0200
commit838ef8a6ec140bd21124258e584be220be55048f (patch)
treeb4e52aac3db76526ea0f5778f1d35ffe332c54c3 /plugins
parentfaa5b2ce61ddc871eab2919f92d683c917730b10 (diff)
parentb525810c14a5602f11949a40529f6a809c29b679 (diff)
downloadShaarli-838ef8a6ec140bd21124258e584be220be55048f.tar.gz
Shaarli-838ef8a6ec140bd21124258e584be220be55048f.tar.zst
Shaarli-838ef8a6ec140bd21124258e584be220be55048f.zip
Merge pull request #1103 from dennisverspuij/fix-on-in-markdown
Fix removal of on=... attributes from html (generated from markdown)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/markdown/markdown.php2
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;