Commit Graph

53 Commits

Author SHA1 Message Date
Peter Westwood a619cbba87 Mark kses callbacks as private. Fixes #7363.
git-svn-id: https://develop.svn.wordpress.org/trunk@8410 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-23 08:36:15 +00:00
Andrew Ozz e5655cff31 kses - don't use create_function in preg_replace_callback. Fixes #7363.
git-svn-id: https://develop.svn.wordpress.org/trunk@8387 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 05:11:00 +00:00
Andrew Ozz 11bac00854 kses - properly escape non-Unicode entities. Fixes #6583. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8386 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 03:21:09 +00:00
Andrew Ozz a9868e9fd5 Take first attribute and ignore later duplicate attributes. Fixes #6602 for trunk. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8384 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 01:12:49 +00:00
Andrew Ozz 124ca7ff00 Prevent adjacent hyphens in a HTML/XML comment. Fixes #6642 for trunk. Props schiller.
git-svn-id: https://develop.svn.wordpress.org/trunk@8382 602fd350-edb4-49c9-b593-d223f7449a82
2008-07-21 00:32:43 +00:00
Ryan Boren 2a31d10af7 Allow lang and xml:lang for span. Props MtDewVirus. fixes #7003
git-svn-id: https://develop.svn.wordpress.org/trunk@7969 602fd350-edb4-49c9-b593-d223f7449a82
2008-05-20 23:56:28 +00:00
Ryan Boren e3bb240c81 Better protocol check from Łukasz Pilorz.
git-svn-id: https://develop.svn.wordpress.org/trunk@7370 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-18 01:53:36 +00:00
Peter Westwood fff82c1684 Update the allowed attributes for html list elements. Fixes #6253 props andy and lloydbudd.
git-svn-id: https://develop.svn.wordpress.org/trunk@7337 602fd350-edb4-49c9-b593-d223f7449a82
2008-03-16 22:16:27 +00:00
Ryan Boren 04ff7f125c Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: https://develop.svn.wordpress.org/trunk@7107 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 18:28:32 +00:00
Ryan Boren 0298b896eb Use preg_replace_callback instead of 'e' modifier. see #5644
git-svn-id: https://develop.svn.wordpress.org/trunk@7106 602fd350-edb4-49c9-b593-d223f7449a82
2008-02-29 17:49:50 +00:00
Ryan Boren 29ae6c24c8 phpdoc for kses from darkdragon. fixes #5641
git-svn-id: https://develop.svn.wordpress.org/trunk@6630 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-16 19:15:07 +00:00
Ryan Boren 3864eec220 Allow more tags in kses. Props lloydbudd. fixes #5617
git-svn-id: https://develop.svn.wordpress.org/trunk@6617 602fd350-edb4-49c9-b593-d223f7449a82
2008-01-14 23:56:53 +00:00
Ryan Boren 7a43c01e08 Remove trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@6026 602fd350-edb4-49c9-b593-d223f7449a82
2007-09-03 23:32:58 +00:00
Mark Jaquith 13d390e40f Pass extra args to pre_kses hook. Props mdawaffe. see #4409
git-svn-id: https://develop.svn.wordpress.org/trunk@5787 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-06 22:47:24 +00:00
Mark Jaquith 258e179448 Entitize lone less-than characters. Props mdawaffe. fixes #4409
git-svn-id: https://develop.svn.wordpress.org/trunk@5783 602fd350-edb4-49c9-b593-d223f7449a82
2007-07-06 12:53:15 +00:00
Ryan Boren b046d67f41 Trim empty lines. Nothing but newline.
git-svn-id: https://develop.svn.wordpress.org/trunk@5700 602fd350-edb4-49c9-b593-d223f7449a82
2007-06-14 02:25:30 +00:00
rob1n 7929eca3cc Don't take out class attribute for <abbr />, for hReview. fixes #3420
git-svn-id: https://develop.svn.wordpress.org/trunk@5383 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-04 03:52:11 +00:00
rob1n d03a237b24 Add lang and xml:lang attributes to allowed list for p, div and blockquote. fixes #4128
git-svn-id: https://develop.svn.wordpress.org/trunk@5375 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:31:30 +00:00
rob1n ae87af4ce8 Spring cleaning, extreme edition.
git-svn-id: https://develop.svn.wordpress.org/trunk@5374 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:26:57 +00:00
rob1n 00c7a213a0 Clean that mess up so it's more easily managed.
git-svn-id: https://develop.svn.wordpress.org/trunk@5373 602fd350-edb4-49c9-b593-d223f7449a82
2007-05-02 04:17:43 +00:00
Mark Jaquith 3357b71e0e Reverse backport (?) from 2.0.x of KSES filters
git-svn-id: https://develop.svn.wordpress.org/trunk@4654 602fd350-edb4-49c9-b593-d223f7449a82
2006-12-21 04:44:34 +00:00
Ryan Boren 01cfb71b45 Update allowed protocols. fixes #2726
git-svn-id: https://develop.svn.wordpress.org/trunk@4550 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-30 01:50:48 +00:00
Ryan Boren 5a2e0d5e60 Filter post_content_filtered
git-svn-id: https://develop.svn.wordpress.org/trunk@4533 602fd350-edb4-49c9-b593-d223f7449a82
2006-11-25 17:54:41 +00:00
Ryan Boren 9e0c4a5155 Bump kses to 0.2.2. Props westi. fixes #2661
git-svn-id: https://develop.svn.wordpress.org/trunk@3989 602fd350-edb4-49c9-b593-d223f7449a82
2006-07-05 22:40:05 +00:00
Ryan Boren f7ee176581 More comment cookie sanitation.
git-svn-id: https://develop.svn.wordpress.org/trunk@3577 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-28 09:49:06 +00:00
Ryan Boren e0feeb161a Strip all html from comment author name, email, and url.
git-svn-id: https://develop.svn.wordpress.org/trunk@3574 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-28 04:22:24 +00:00
Ryan Boren cd4a8a24c5 current user cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@3566 602fd350-edb4-49c9-b593-d223f7449a82
2006-02-22 19:08:55 +00:00
Ryan Boren ba8e3e8d47 Make the xmlrpc user the current user. fixes #2273
git-svn-id: https://develop.svn.wordpress.org/trunk@3430 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-13 19:19:09 +00:00
Ryan Boren 835a8b9992 kses regex tweakage for better comment filtering. fixes #2130
git-svn-id: https://develop.svn.wordpress.org/trunk@3429 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-13 07:28:47 +00:00
Ryan Boren 3974041405 Rerun comment text back through kses.
git-svn-id: https://develop.svn.wordpress.org/trunk@3418 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-10 01:27:36 +00:00
Ryan Boren 06532a3304 Pass comments through kses. Props tsimmons. fixes #2130 #2167
git-svn-id: https://develop.svn.wordpress.org/trunk@3417 602fd350-edb4-49c9-b593-d223f7449a82
2006-01-09 23:49:56 +00:00
Ryan Boren 6ffbef60a5 Filter title with kses. fixes #1788
git-svn-id: https://develop.svn.wordpress.org/trunk@2963 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-25 14:46:23 +00:00
Ryan Boren 565ff7ca40 Add ordered list tags to kses. fixes #1761
git-svn-id: https://develop.svn.wordpress.org/trunk@2950 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-14 18:52:44 +00:00
Ryan Boren 4bb9a136f6 Add kses_init_filters(). Call it when running importers.
git-svn-id: https://develop.svn.wordpress.org/trunk@2934 602fd350-edb4-49c9-b593-d223f7449a82
2005-10-05 23:58:16 +00:00
Matt Mullenweg a223ff02c3 Some of that really shouldn't be in posts.
git-svn-id: https://develop.svn.wordpress.org/trunk@2924 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-27 21:23:02 +00:00
Matt Mullenweg dbe7f56251 We had reverted this fix from [1253]
git-svn-id: https://develop.svn.wordpress.org/trunk@2919 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-26 16:06:58 +00:00
Ryan Boren 258e64c812 stripslashes before running kses. Props donncha. fixes #1697
git-svn-id: https://develop.svn.wordpress.org/trunk@2902 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-21 16:35:35 +00:00
Ryan Boren 38b52d8efc Remove extra line. fixes #1694
git-svn-id: https://develop.svn.wordpress.org/trunk@2899 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-21 02:38:47 +00:00
Ryan Boren f1660060ca Filter posts with kses for users who do not have the unfiltered_html cap. Props donncha. fixes #1674
git-svn-id: https://develop.svn.wordpress.org/trunk@2896 602fd350-edb4-49c9-b593-d223f7449a82
2005-09-20 22:18:47 +00:00
Matt Mullenweg 5671e81028 More filters and KSES cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@2151 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-26 22:29:18 +00:00
Matt Mullenweg ae46b3819f User-generated rel attributes shouldn't be allowed in comments (doesn't make sense for any current uses of rel.)
git-svn-id: https://develop.svn.wordpress.org/trunk@2116 602fd350-edb4-49c9-b593-d223f7449a82
2005-01-21 07:53:02 +00:00
Matt Mullenweg b39c4f8273 Comments refactoring and cleanup
git-svn-id: https://develop.svn.wordpress.org/trunk@1964 602fd350-edb4-49c9-b593-d223f7449a82
2004-12-16 02:57:05 +00:00
Matt Mullenweg d197f0594b Fix so KSES works with Japanese encoding.
git-svn-id: https://develop.svn.wordpress.org/trunk@1253 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-09 23:25:24 +00:00
Matt Mullenweg 2d8c664856 Add blockquote to tags allowed by default.
git-svn-id: https://develop.svn.wordpress.org/trunk@1238 602fd350-edb4-49c9-b593-d223f7449a82
2004-05-07 23:30:44 +00:00
Matt Mullenweg aec151b9ac Logic error when checking for define.
git-svn-id: https://develop.svn.wordpress.org/trunk@834 602fd350-edb4-49c9-b593-d223f7449a82
2004-02-05 15:25:00 +00:00
Matt Mullenweg 1fe76304c9 Let people override the allowedtags variable.
git-svn-id: https://develop.svn.wordpress.org/trunk@832 602fd350-edb4-49c9-b593-d223f7449a82
2004-02-05 14:40:32 +00:00
Matt Mullenweg 3856282eb3 Tag cleanup.
git-svn-id: https://develop.svn.wordpress.org/trunk@767 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-12 22:09:07 +00:00
Dougal Campbell 5c91a6a14a Added a few tags. Pretty formatting.
git-svn-id: https://develop.svn.wordpress.org/trunk@766 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-12 18:15:09 +00:00
Matt Mullenweg 0738b73f9a KSES fixes.
git-svn-id: https://develop.svn.wordpress.org/trunk@731 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-07 01:28:30 +00:00
Matt Mullenweg 49feb2716f Comment_allowed_tags fixup.
git-svn-id: https://develop.svn.wordpress.org/trunk@709 602fd350-edb4-49c9-b593-d223f7449a82
2004-01-03 23:48:16 +00:00