mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/11768] Added support for magic links that start with "www."
PHPBB3-11768
This commit is contained in:
parent
63753bbf1a
commit
f6e3e41717
3 changed files with 14 additions and 5 deletions
9
phpBB/composer.lock
generated
9
phpBB/composer.lock
generated
|
@ -169,17 +169,18 @@
|
|||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/s9e/TextFormatter.git",
|
||||
"reference": "3659ed8d9209a4a42f23f7169dbcc0a114fd601f"
|
||||
"reference": "2cfaacd8619ecaebb6de5674b94580689f062f66"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/s9e/TextFormatter/zipball/3659ed8d9209a4a42f23f7169dbcc0a114fd601f",
|
||||
"reference": "3659ed8d9209a4a42f23f7169dbcc0a114fd601f",
|
||||
"url": "https://api.github.com/repos/s9e/TextFormatter/zipball/2cfaacd8619ecaebb6de5674b94580689f062f66",
|
||||
"reference": "2cfaacd8619ecaebb6de5674b94580689f062f66",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-dom": "*",
|
||||
"ext-filter": "*",
|
||||
"lib-pcre": ">=7.2",
|
||||
"php": ">=5.3.3"
|
||||
},
|
||||
"suggest": {
|
||||
|
@ -218,7 +219,7 @@
|
|||
"parser",
|
||||
"shortcodes"
|
||||
],
|
||||
"time": "2015-02-06 19:38:34"
|
||||
"time": "2015-02-13 10:24:14"
|
||||
},
|
||||
{
|
||||
"name": "symfony/config",
|
||||
|
|
|
@ -280,7 +280,7 @@ class factory implements \phpbb\textformatter\cache
|
|||
|
||||
// Load the magic links plugins. We do that after BBCodes so that they use the same tags
|
||||
$configurator->plugins->load('Autoemail');
|
||||
$configurator->plugins->load('Autolink');
|
||||
$configurator->plugins->load('Autolink', array('matchWww' => true));
|
||||
|
||||
// Register some vars with a default value. Those should be set at runtime by whatever calls
|
||||
// the parser
|
||||
|
|
|
@ -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> line1<br>' . "\n" . ' 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> ...'
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue