diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-25 22:29:57 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2006-01-25 22:29:57 +0000 |
commit | 548e5d2b5f7ea6c4cd27e626df11ffbc23c1b3d4 (patch) | |
tree | 7315495c63f2217dd29592b9458f3ff6dd2cdb25 /modules/filter.module | |
parent | f4f77fc8513bc6183c03d7d96741d74788853f86 (diff) | |
download | brdo-548e5d2b5f7ea6c4cd27e626df11ffbc23c1b3d4.tar.gz brdo-548e5d2b5f7ea6c4cd27e626df11ffbc23c1b3d4.tar.bz2 |
- #45742: XHTML slash fix.
Diffstat (limited to 'modules/filter.module')
-rw-r--r-- | modules/filter.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter.module b/modules/filter.module index 0e345cce6..422045543 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -1135,9 +1135,9 @@ function _filter_xss_split($m, $store = FALSE) { } // Is there a closing XHTML slash at the end of the attributes? - $attrlist = preg_replace('%(\s?)/\s*$%', '\1', $attrlist); - // in PHP 5.1.0 we could count the changes, currently we need this + // In PHP 5.1.0+ we could count the changes, currently we need a separate match $xhtml_slash = preg_match('%\s?/\s*$%', $attrlist) ? ' /' : ''; + $attrlist = preg_replace('%(\s?)/\s*$%', '\1', $attrlist); // Clean up attributes $attr2 = implode(' ', _filter_xss_attributes($attrlist)); |