Auth_OpenID_Parse fails to find link attributes in HTML with uppercase HEAD tag #133
Comments
Lowercasing the |
Actually lowercasing just the first is enough. |
from #PHP IRC channel on Freenode:
|
I restricted the input further.
While this works:
|
The built regexp attempting to find that
|
Commenting out the |
Sorry I was wrong, the actual fix is to always use preg_match rather than using So, what's the rationale to prefer |
and the |
@pfefferle here you can find the testcase if you want to give it a try |
Offending HTML:
The Auth_OpenID_Parse's parseLinkAttrs returns empty when passed that HTML.
Why not using DOM rather than regexps in that function ?
The text was updated successfully, but these errors were encountered: