protected function assessSafeness(array $map)
	{
		// Concatenate the values so we can check them as a single string
		$values = implode('', $map);

		// Test whether the values contain any character that's disallowed in CSS
		$isSafeInCSS = true;
		foreach (ContextSafeness::getDisallowedCharactersInCSS() as $char)
		{
			if (strpos($values, $char) !== false)
			{
				$isSafeInCSS = false;
				break;
			}
		}
		if ($isSafeInCSS)
		{
			$this->markAsSafeInCSS();
		}

		// Test whether the values contain any character that's disallowed in JS
		$isSafeInJS = true;
		foreach (ContextSafeness::getDisallowedCharactersInJS() as $char)
		{
			if (strpos($values, $char) !== false)
			{
				$isSafeInJS = false;
				break;
			}
		}
		if ($isSafeInJS)
		{
			$this->markAsSafeInJS();
		}
	}
protected function assessSafeness(array $map)
	{
		// Concatenate the values so we can check them as a single string
		$values = implode('', $map);

		// Test whether the values contain any character that's disallowed in CSS
		$isSafeInCSS = true;
		foreach (ContextSafeness::getDisallowedCharactersInCSS() as $char)
		{
			if (strpos($values, $char) !== false)
			{
				$isSafeInCSS = false;
				break;
			}
		}
		if ($isSafeInCSS)
		{
			$this->markAsSafeInCSS();
		}

		// Test whether the values contain any character that's disallowed in JS
		$isSafeInJS = true;
		foreach (ContextSafeness::getDisallowedCharactersInJS() as $char)
		{
			if (strpos($values, $char) !== false)
			{
				$isSafeInJS = false;
				break;
			}
		}
		if ($isSafeInJS)
		{
			$this->markAsSafeInJS();
		}
	}
protected function assessSafeness ( array $ map ) { // Concatenate the values so we can check them as a single string $ values = implode ( '' , $ map ) ; // Test whether the values contain any character that's disallowed in CSS $ isSafeInCSS = true ; foreach ( ContextSafeness :: getDisallowedCharactersInCSS ( ) as $ char ) { if ( strpos ( $ values , $ char ) !== false ) { $ isSafeInCSS = false ; break ; } } if ( $ isSafeInCSS ) { $ this -> markAsSafeInCSS ( ) ; } // Test whether the values contain any character that's disallowed in JS $ isSafeInJS = true ; foreach ( ContextSafeness :: getDisallowedCharactersInJS ( ) as $ char ) { if ( strpos ( $ values , $ char ) !== false ) { $ isSafeInJS = false ; break ; } } if ( $ isSafeInJS ) { $ this -> markAsSafeInJS ( ) ; } }
Assess the safeness of given map in contexts

@param  array $map
@return void
Assess the safeness of given map in contexts