diff --git a/Cite_body.php b/Cite_body.php index 77e5e7e5..e933015a 100644 --- a/Cite_body.php +++ b/Cite_body.php @@ -155,10 +155,10 @@ class Cite { return $this->error( 'cite_error_ref_numeric_key' ); } - if( strpos( - preg_replace( '#<([^ ]+?).*?>.*?|#', '', $str ), - '' - ) !== false ) { + if( preg_match( + '//', + preg_replace( '#<([^ ]+?).*?>.*?|#', '', $str ) + ) ) { # (bug 6199) This most likely implies that someone left off the # closing tag, which will cause the entire article to be # eaten up until the next . So we bail out early instead.