You are here

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

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 src/XMLSecurityKey.php
XMLSecurityDSig::processRefNode in src/XMLSecurityKey.php

File

src/XMLSecurityKey.php, line 29

Class

XPath

Namespace

Drupal\miniorange_saml

Code

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