You are here

public static function XPath::filterAttrValue in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 7

Filter an attribute value for save inclusion in an XPath query.

Parameters

string $value The value to filter.:

string $quotes The quotes used to delimit the value in the XPath query.:

Return value

string The filtered attribute value.

2 calls to XPath::filterAttrValue()
XMLSecEnc::staticLocateKeyInfo in includes/XMLSecurityKey.php
XMLSecurityDSig::processRefNode in includes/XMLSecurityKey.php

File

includes/XMLSecurityKey.php, line 62

Class

XPath
xmlseclibs.php

Code

public static function filterAttrValue($value, $quotes = self::ALL_QUOTES) {
  return preg_replace('#' . $quotes . '#', '', $value);
}