Bylo opraveno:
Kód: Vybrat vše
lori includes # git diff th23_autolinks.php
diff --git a/includes/th23_autolinks.php b/includes/th23_autolinks.php
index b8eb60d..ca7249f 100644
--- a/includes/th23_autolinks.php
+++ b/includes/th23_autolinks.php
@@ -117,7 +117,10 @@ function th23_autolinks($text, $bbcode_uid)
$text = preg_replace_callback($th23_autolinks['pattern'], 'th23_autolinks_encode_links', $text);
// decode the encoded part
- $text = preg_replace_callback('/\sth23autolink_encode_start_' . $th23_autolinks_uid . '(.*?)th23aut
+ do {
+ $oldtext = $text;
+ $text = preg_replace_callback('/\sth23autolink_encode_start_' . $th23_autolinks_uid . '(.*?
+ } while ($oldtext != $text);
// re-convert standard bbcodes tags
$search = array(
@@ -182,4 +185,4 @@ function th23_autolinks_decode($match)
return base64_decode($match[1]);
}
-?>
\ No newline at end of file