@@ -764,8 +764,9 @@ discard block |
||
| 764 | 764 | // tag parser and hashed. Need to reverse the process before using |
| 765 | 765 | // the URL. |
| 766 | 766 | $unhashed = $this->unhash($url); |
| 767 | - if ($unhashed !== $url) |
|
| 768 | - $url = preg_replace('/^<(.*)>$/', '\1', $unhashed); |
|
| 767 | + if ($unhashed !== $url) { |
|
| 768 | + $url = preg_replace('/^<(.*)>$/', '\1', $unhashed); |
|
| 769 | + } |
|
| 769 | 770 | |
| 770 | 771 | $url = $this->encodeURLAttribute($url); |
| 771 | 772 | |
@@ -1614,8 +1615,7 @@ discard block |
||
| 1614 | 1615 | if ($this->autolinks) |
| 1615 | 1616 | { |
| 1616 | 1617 | $regex = '{((https?|ftp|dict|tel):[^\'">\s]+)}i'; |
| 1617 | - } |
|
| 1618 | - else |
|
| 1618 | + } else |
|
| 1619 | 1619 | { |
| 1620 | 1620 | $regex = '{<((https?|ftp|dict|tel):[^\'">\s]+)>}i'; |
| 1621 | 1621 | } |