mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 23:37:39 +02:00
[ticket/security/211] Allow make_clickable() again after change to regex
SECURITY-211
This commit is contained in:
@@ -108,6 +108,7 @@ abstract class type_string_common extends type_base
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$field_value = make_clickable($field_value);
|
||||||
$field_value = censor_text($field_value);
|
$field_value = censor_text($field_value);
|
||||||
$field_value = bbcode_nl2br($field_value);
|
$field_value = bbcode_nl2br($field_value);
|
||||||
return $field_value;
|
return $field_value;
|
||||||
|
@@ -82,8 +82,6 @@ class type_url extends type_string
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$field_value = make_clickable($field_value);
|
|
||||||
|
|
||||||
return parent::get_profile_value($field_value, $field_data);
|
return parent::get_profile_value($field_value, $field_data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -273,8 +273,8 @@ class phpbb_profilefield_type_string_test extends phpbb_test_case
|
|||||||
array(
|
array(
|
||||||
'http://foobar.com',
|
'http://foobar.com',
|
||||||
array('field_show_novalue' => false),
|
array('field_show_novalue' => false),
|
||||||
'http://foobar.com',
|
'<!-- l --><a class="postlink-local" href="http://foobar.com">foobar.com</a><!-- l -->',
|
||||||
'Field should output the given value but not make it clickable',
|
'Field should output the given value and make it clickable',
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'javascript://foobar.com',
|
'javascript://foobar.com',
|
||||||
|
Reference in New Issue
Block a user