Fix: anchor-utils filter does not detect an empty anchor tag (e.g. <a name="test"><a>), props Olivier Burgard. If an empty anchor tag is in front of image link, "thickbox" class cannot be added to the link then the image cannot be overlaid by click.

This commit is contained in:
attosoft committed 2012-05-11 05:03:06 +00:00
1 parent e9c173628f
commit f2d0c6aa7e
1 file changed
+2 -2
+2 -2
View File
@@ -51,7 +51,7 @@ class anchor_utils {
<\s*a\s+
([^<>]+)
>
(.+?)
((?!<\s*\/\s*a\s*>).+?)
<\s*\/\s*a\s*>
/isx", array('anchor_utils', 'ob_filter_callback'), $text);
@@ -118,7 +118,7 @@ class anchor_utils {
<\s*a\s+
([^<>]+)
>
(.+?)
((?!<\s*\/\s*a\s*>).+?)
<\s*\/\s*a\s*>
/isx", array('anchor_utils', 'filter_callback'), $text);