1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/11768] Added support for magic links that start with "www."

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-02-13 11:28:51 +01:00
parent 63753bbf1a
commit f6e3e41717
3 changed files with 14 additions and 5 deletions

View File

@@ -193,6 +193,14 @@ class phpbb_textformatter_s9e_default_formatting_test extends phpbb_test_case
"[code]\tline1\n line2[/code]",
'<div class="codebox"><p>CODE: <a href="#" onclick="selectCode(this); return false;">Select all</a></p><code>&nbsp; &nbsp;line1<br>' . "\n" . '&nbsp; line2</code></div>'
),
array(
'... http://example.org ...',
'... <a href="http://example.org" class="postlink">http://example.org</a> ...'
),
array(
'... www.example.org ...',
'... <a href="http://www.example.org" class="postlink">www.example.org</a> ...'
),
);
}
}