mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
[ticket/14323] Added support for truncating long URLs
PHPBB3-14323
This commit is contained in:
@@ -225,6 +225,16 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
|
||||
'... www.example.org ...',
|
||||
'... <a href="http://www.example.org" class="postlink">www.example.org</a> ...'
|
||||
),
|
||||
array(
|
||||
// From make_clickable_test.php
|
||||
'www.phpbb.com/community/?',
|
||||
'<a href="http://www.phpbb.com/community/" class="postlink">www.phpbb.com/community/</a>?'
|
||||
),
|
||||
array(
|
||||
// From make_clickable_test.php
|
||||
'http://www.phpbb.com/community/path/to/long/url/file.ext#section',
|
||||
'<a href="http://www.phpbb.com/community/path/to/long/url/file.ext#section" class="postlink">http://www.phpbb.com/community/path/to/ ... xt#section</a>'
|
||||
),
|
||||
array(
|
||||
'[quote="[url=http://example.org]xxx[/url]"]...[/quote]',
|
||||
'<blockquote><div><cite><a href="http://example.org" class="postlink">xxx</a> wrote:</cite>...</div></blockquote>'
|
||||
|
Reference in New Issue
Block a user