From: <ru...@us...> - 2010-06-07 13:32:16
|
Revision: 7483 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7483&view=rev Author: rurban Date: 2010-06-07 13:32:07 +0000 (Mon, 07 Jun 2010) Log Message: ----------- fix nasty / escape in regexp Modified Paths: -------------- trunk/lib/InlineParser.php Modified: trunk/lib/InlineParser.php =================================================================== --- trunk/lib/InlineParser.php 2010-06-07 13:31:38 UTC (rev 7482) +++ trunk/lib/InlineParser.php 2010-06-07 13:32:07 UTC (rev 7483) @@ -947,10 +947,9 @@ global $PLUGIN_MARKUP_MAP; static $_start_regexp; if ($_start_regexp) return $_start_regexp; - if (empty($PLUGIN_MARKUP_MAP)) - return ''; - //"<(?: html|dot|toc|amath|richtable|include|tex )(?: \s[^>]*)>" - $_start_regexp = "<(?: ".join('|',array_keys($PLUGIN_MARKUP_MAP))." )(?: \s[^>]* | / )>"; + if (empty($PLUGIN_MARKUP_MAP)) return ''; + //"<(?: html|search|extsearch|dot|toc|math|richtable|include|tex )(?: \s[^>]*)>" + $_start_regexp = "<(?: ".join('|',array_keys($PLUGIN_MARKUP_MAP))." )(?: \s[^>]*|\\/ )>"; return $_start_regexp; } function getEndRegexp ($match) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |