1
0
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:
JoshyPHP
2015-12-05 07:55:52 +01:00
parent 28969511d2
commit eb6ceb963e
3 changed files with 76 additions and 2 deletions

View File

@@ -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>'