diff options
author | Lilli <lilli@janrain.com> | 2010-04-29 13:39:18 -0700 |
---|---|---|
committer | Lilli <lilli@janrain.com> | 2010-04-29 13:39:44 -0700 |
commit | a3411ea3b88628533bd1d0550a17ec2cc6f32af7 (patch) | |
tree | f337ff556cd3f66ff5fad00498b151626e6bdacd | |
parent | 32324ad14b0f46df4158d4b1b3d08587e8f05377 (diff) | |
download | php-openid-a3411ea3b88628533bd1d0550a17ec2cc6f32af7.zip php-openid-a3411ea3b88628533bd1d0550a17ec2cc6f32af7.tar.gz php-openid-a3411ea3b88628533bd1d0550a17ec2cc6f32af7.tar.bz2 |
Fixing issue opened by jhr with patch found on bugs.debian.orgs: "A Debian user reported that the regular expression in Auth/OpenID/Parse.php is too greedy to cope with big pages. A simple fix is to make .? to . See http://bugs.debian.org/535479 for more info."
-rw-r--r-- | Auth/OpenID/Parse.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Auth/OpenID/Parse.php b/Auth/OpenID/Parse.php index 455723d..6c2e721 100644 --- a/Auth/OpenID/Parse.php +++ b/Auth/OpenID/Parse.php @@ -101,7 +101,7 @@ class Auth_OpenID_Parse { * Starts with the tag name at a word boundary, where the tag name * is not a namespace */ - var $_tag_expr = "<%s\b(?!:)([^>]*?)(?:\/>|>(.*?)(?:<\/?%s\s*>|\Z))"; + var $_tag_expr = "<%s\b(?!:)([^>]*?)(?:\/>|>(.*)(?:<\/?%s\s*>|\Z))"; var $_attr_find = '\b(\w+)=("[^"]*"|\'[^\']*\'|[^\'"\s\/<>]+)'; |