1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[ticket/security/257] Enforce http(s) for URLs in image BBCode

SECURITY-257
This commit is contained in:
Marc Alexander
2020-05-02 14:24:06 +02:00
parent 20d64270a4
commit 3ecd2f150d
3 changed files with 10 additions and 1 deletions

View File

@@ -120,6 +120,11 @@ class phpbb_bbcode_parser_test extends \phpbb_test_case
'[img]https://area51.phpbb.com/images/area51.png[/img]',
'[img:]https://area51.phpbb.com/images/area51.png[/img:]',
),
array(
'Test default bbcodes: img with unsupported protocol',
'[img]foo://foo/bar[/img]',
'[img]foo://foo/bar[/img]',
),
array(
'Test default bbcodes: simple url',
'[url]https://area51.phpbb.com/[/url]',