Merge pull request #92 from mwrather/master

Escape slashes in roots_gallery_style
This commit is contained in:
Scott Walkinshaw
2011-07-18 13:48:48 -07:00

View File

@@ -176,7 +176,7 @@ function roots_remove_recent_comments_style() {
// remove CSS from gallery
function roots_gallery_style($css) {
return preg_replace("/<style type='text/css'>(.*?)</style>/s", '', $css);
return preg_replace("/<style type='text\/css'>(.*?)<\/style>/s", '', $css);
}
function roots_head_cleanup() {