Language: PHP
Label: vulnerable
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
function comment_clean(&$arr) {
	$arr ['name'] = apply_filters('pre_comment_author_name', stripslashes($arr ['name']));
	if (isset($arr ['email']))
		$arr ['email'] = apply_filters('pre_comment_author_email', $arr ['email']);
	if (isset($arr ['url']))
		$arr ['url'] = apply_filters('pre_comment_author_url', $arr ['url']);
	$arr ['content'] = apply_filters('pre_comment_content', $arr ['content']);
	return $arr;
}