english/libraries/joomla/filter/filterinput.php
/**
	 * Function to determine if contents of an attribute are safe
	 *
	 * @param   array  $attrSubSet  A 2 element array for attribute's name, value
	 *
	 * @return  boolean  True if bad code is detected
	 * @since   11.1
	 */
Function to determine if contents of an attribute are safe
@param   array  $attrSubSet  A 2 element array for attribute's name, value

@return  boolean  True if bad code is detected
@since   11.1
Function to determine if contents of an attribute are safe @param array $attrSubSet A 2 element array for attribute ' s name value @return boolean True if bad code is detected @since 11 . 1
public static function checkAttribute($attrSubSet)
	{
		$attrSubSet[0] = strtolower($attrSubSet[0]);
		$attrSubSet[1] = strtolower($attrSubSet[1]);
		return (((strpos($attrSubSet[1], 'expression') !== false) && ($attrSubSet[0]) == 'style') || (strpos($attrSubSet[1], 'javascript:') !== false) || (strpos($attrSubSet[1], 'behaviour:') !== false) || (strpos($attrSubSet[1], 'vbscript:') !== false) || (strpos($attrSubSet[1], 'mocha:') !== false) || (strpos($attrSubSet[1], 'livescript:') !== false));
	}
public static function checkAttribute ( $ attrSubSet ) { $ attrSubSet [ 0 ] = strtolower ( $ attrSubSet [ 0 ] ) ; $ attrSubSet [ 1 ] = strtolower ( $ attrSubSet [ 1 ] ) ; return ( ( ( strpos ( $ attrSubSet [ 1 ] , 'expression' ) !== false ) && ( $ attrSubSet [ 0 ] ) == 'style' ) || ( strpos ( $ attrSubSet [ 1 ] , 'javascript:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'behaviour:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'vbscript:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'mocha:' ) !== false ) || ( strpos ( $ attrSubSet [ 1 ] , 'livescript:' ) !== false ) ) ; }
Function to determine if contents of an attribute are safe
 @param   array  $attrSubSet  A 2 element array for attribute's name, value
Function to determine if contents of an attribute are safe @param array $attrSubSet A 2 element array for attribute ' s name value