Skip to content

Commit

Permalink
fix encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
810 committed Dec 21, 2019
1 parent 7c02478 commit 55df8b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libraries/kunena/bbcode/bbcode.php
Expand Up @@ -400,7 +400,7 @@ public function Internal_AutoDetectURLs($string)
(?:
\((?:[^\s()<>]+|(\(?:[^\s()<>]+\)))*\)
|
[^\s`!()\[\]{};:\'"\.,<>?«»“”‘’]
[^\s`!()\[\]{};:\'"\.,<>?«»“”‘’]
)
)/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE);

Expand All @@ -424,7 +424,7 @@ public function Internal_AutoDetectURLs($string)
}

// Never start URL from the middle of text (except for punctuation).
$invalid = preg_match('#[^\s`!()\[\]{};\'"\.,<>?«»“”‘’]$#u', $search[$index - 1]);
$invalid = preg_match('#[^\s`!()\[\]{};\'"\.,<>?«»“”‘’]$#u', $search[$index - 1]);
$invalid |= !$this->IsValidURL($url, true);

// We have a full, complete, and properly-formatted URL, with protocol.
Expand Down

0 comments on commit 55df8b6

Please sign in to comment.