Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove greediness of BBCode [quote] matching regular expression.

  • Loading branch information...
commit da51976bdaadd54bfc67682e3f6468833be727a6 1 parent 20b5812
@kdeldycke authored
Showing with 3 additions and 4 deletions.
  1. +2 −2 e107-importer.php
  2. +1 −2  readme.txt
View
4 e107-importer.php
@@ -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
3  readme.txt
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.