Permalink
Browse files

Remove greediness of BBCode [quote] matching regular expression.

  • Loading branch information...
1 parent 20b5812 commit da51976bdaadd54bfc67682e3f6468833be727a6 @kdeldycke committed May 13, 2011
Showing with 3 additions and 4 deletions.
  1. +2 −2 e107-importer.php
  2. +1 −2 readme.txt
View
@@ -1262,8 +1262,8 @@ function pre_cleanup_markup($content) {
'/\[\s*blockquote\s*\]/i' => '<blockquote>'
, '/\[\/\s*blockquote\s*\]/i' => '</blockquote>'
// Replace "[quoteXXXXX]...[/quoteXXXXX]" with "<blockquote>...</blockquote>"
- , '/\[\s*quote.*\]/i' => '<blockquote>'
- , '/\[\/\s*quote.*\]/i' => '</blockquote>'
+ , '/\[\s*quote(.*?)\]/i' => '<blockquote>'
+ , '/\[\/\s*quote(.*?)\]/i' => '</blockquote>'
// Fix malformated [link="URL"] and [link=&quot;URL&quot;] BBCodes (e107 parser fails on double quotes)
, '/\[\s*link\s*=\s*("|&quot;)(.*?)\1\s*\]/i' => '[link=\2]'
);
View
@@ -139,8 +139,7 @@ This plugin contain original code from the e107 project, licensed under the GPL.
== Changelog ==
= 1.4 =
-
-No changes yet.
+* Fix BBCode's quote tag transformation by enhanced parser.
= 1.3 =
* Upgrade embedded e107 code with latest 0.7.25.

0 comments on commit da51976

Please sign in to comment.