diff --git a/ext/bbcode/main.php b/ext/bbcode/main.php
index e0e35fb3..b684be12 100644
--- a/ext/bbcode/main.php
+++ b/ext/bbcode/main.php
@@ -27,10 +27,6 @@
class BBCode extends FormatterExtension {
public function format(/*string*/ $text) {
- $text = preg_replace_callback("/(\[img\]https?:\/\/.*?\[\/img\])/s", array($this, "unwrap"), $text);
- $text = preg_replace_callback("/(\[url=(?:https?|ftp|irc|mailto):\/\/.*?\])/s", array($this, "unwrap"), $text);
- $text = preg_replace_callback("/(\[url\](?:https?|ftp|irc|mailto):\/\/.*?\[\/url\])/s", array($this, "unwrap"), $text);
-
$text = $this->extract_code($text);
$text = preg_replace("/\[b\](.*?)\[\/b\]/s", "\\1", $text);
$text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text);
@@ -70,10 +66,6 @@ class BBCode extends FormatterExtension {
return $text;
}
- private function unwrap($matches) {
- return str_replace(' ', '', $matches[1]);
- }
-
public function strip(/*string*/ $text) {
$text = preg_replace("/\[b\](.*?)\[\/b\]/s", "\\1", $text);
$text = preg_replace("/\[i\](.*?)\[\/i\]/s", "\\1", $text);