diff options
author | Marc Alexander <admin@m-a-styles.de> | 2017-07-23 11:18:07 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2017-07-23 11:18:07 +0200 |
commit | 91f9050a70d95a472daf9f6fa15187c195f05909 (patch) | |
tree | 6fb88de3de320cc7082ccd79dfc258959095952a /tests/profilefields/type_string_test.php | |
parent | 2749bfe26ccae7db4174cdd83453d79366113c28 (diff) | |
download | forums-91f9050a70d95a472daf9f6fa15187c195f05909.tar forums-91f9050a70d95a472daf9f6fa15187c195f05909.tar.gz forums-91f9050a70d95a472daf9f6fa15187c195f05909.tar.bz2 forums-91f9050a70d95a472daf9f6fa15187c195f05909.tar.xz forums-91f9050a70d95a472daf9f6fa15187c195f05909.zip |
[ticket/security/211] Extend tests for profile field values
SECURITY-211
Diffstat (limited to 'tests/profilefields/type_string_test.php')
-rw-r--r-- | tests/profilefields/type_string_test.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/profilefields/type_string_test.php b/tests/profilefields/type_string_test.php index 0417afbfab..43f88c01ae 100644 --- a/tests/profilefields/type_string_test.php +++ b/tests/profilefields/type_string_test.php @@ -270,6 +270,18 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case null, 'Field should simply output null for empty vlaue', ), + array( + 'http://foobar.com', + array('field_show_novalue' => false), + 'http://foobar.com', + 'Field should output the given value but not make it clickable', + ), + array( + 'javascript://foobar.com', + array('field_show_novalue' => true), + 'javascript://foobar.com', + 'Field should output the given value but not make it clickable', + ), ); } |