Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Duplicate
-
3.0.12
-
None
Description
If you try to post url with non-latin symbols (example:
https://ru.wikipedia.org/wiki/Миллиган,_Билли ) you get an error.
Solution:
file: /includes/functions_content.php
function: make_clickable_callback
string:
$short_url = (strlen($url) > 55) ? substr($url, 0, 39) . ' ... ' . substr($url, -10) : $url;
replace with multi-byte versions:
$short_url = (mb_strlen($url) > 55) ? mb_substr($url, 0, 39) . ' ... ' . mb_substr($url, -10) : $url;
Attachments
Issue Links
- was obsoleted by solution of
-
PHPBB3-13297 Add unicode modifier to url/email regular expression patterns
- Unverified Fix