Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The following returns true wherever "xri://" is defined in the identifier.
// Strip the xri:// scheme from the identifier if present.
if (stripos($identifier, 'xri://') !== FALSE) {
$identifier = substr($identifier, 6);
}
The !== FALSE needs to be replaced by === 0 as in:
// Strip the xri:// scheme from the identifier if present.
if (stripos($identifier, 'xri://') === 0) {
$identifier = substr($identifier, 6);
}
Thank you.
Alexis Wilke
Comment | File | Size | Author |
---|---|---|---|
#10 | openid-is-xri-D6-1.patch | 988 bytes | c960657 |
#1 | openid-is-xri-1.patch | 966 bytes | c960657 |
Comments
Comment #1
c960657 CreditAttribution: c960657 commentedComment #3
c960657 CreditAttribution: c960657 commented#1: openid-is-xri-1.patch queued for re-testing.
Comment #5
c960657 CreditAttribution: c960657 commented#1: openid-is-xri-1.patch queued for re-testing.
Comment #7
c960657 CreditAttribution: c960657 commentedAh, the test failed because the patch is against HEAD, but the version field was set to 6.14.
Comment #8
c960657 CreditAttribution: c960657 commented#1: openid-is-xri-1.patch queued for re-testing.
Comment #9
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Thanks.
Comment #10
c960657 CreditAttribution: c960657 commentedBackport for D6.
Comment #12
c960657 CreditAttribution: c960657 commented#10: openid-is-xri-D6-1.patch queued for re-testing.
Comment #14
c960657 CreditAttribution: c960657 commented#10: openid-is-xri-D6-1.patch queued for re-testing.
Comment #16
c960657 CreditAttribution: c960657 commentedComment #17
Anonymous (not verified) CreditAttribution: Anonymous commented#10: openid-is-xri-D6-1.patch queued for re-testing.