Index: media.php
===================================================================
--- media.php (revision 18275)
+++ media.php (working copy)
@@ -1257,7 +1257,7 @@
* @return string Potentially modified $content.
*/
function autoembed( $content ) {
- return preg_replace_callback( '|^\s*(https?://[^\s"]+)\s*$|im', array(&$this, 'autoembed_callback'), $content );
+ return preg_replace_callback( '!^\s*(?:)?(https?://[^\s<"]+)(?:)?\s*$!im', array(&$this, 'autoembed_callback'), $content );
}
/**
@@ -1438,4 +1438,4 @@
return apply_filters( 'embed_googlevideo', '', $matches, $attr, $url, $rawattr );
}
-?>
\ No newline at end of file
+?>