incubator-heraldry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ket...@apache.org
Subject svn commit: r493337 - in /incubator/heraldry/libraries/python/openid/trunk/openid: server/trustroot.py test/trustroot.txt
Date Sat, 06 Jan 2007 05:22:37 GMT
Author: keturn
Date: Fri Jan  5 21:22:37 2007
New Revision: 493337

URL: http://svn.apache.org/viewvc?view=rev&rev=493337
Log:
[python-to-heraldry @ Add URI fragment test case for trust root]

Original author: cygnus@janrain.com
Date: 2006-12-20 18:46:35+00:00

Modified:
    incubator/heraldry/libraries/python/openid/trunk/openid/server/trustroot.py
    incubator/heraldry/libraries/python/openid/trunk/openid/test/trustroot.txt

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/server/trustroot.py
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/server/trustroot.py?view=diff&rev=493337&r1=493336&r2=493337
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/server/trustroot.py (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/server/trustroot.py Fri Jan  5
21:22:37 2007
@@ -207,6 +207,10 @@
         if proto not in _protocols:
             return None
 
+        # check for URI fragment
+        if path.find('#') != -1:
+            return None
+
         # extract wildcard if it is there
         if host.find('*', 1) != -1:
             # wildcard must be at start of domain:  *.foo.com, not foo.*.com

Modified: incubator/heraldry/libraries/python/openid/trunk/openid/test/trustroot.txt
URL: http://svn.apache.org/viewvc/incubator/heraldry/libraries/python/openid/trunk/openid/test/trustroot.txt?view=diff&rev=493337&r1=493336&r2=493337
==============================================================================
--- incubator/heraldry/libraries/python/openid/trunk/openid/test/trustroot.txt (original)
+++ incubator/heraldry/libraries/python/openid/trunk/openid/test/trustroot.txt Fri Jan  5
21:22:37 2007
@@ -3,7 +3,7 @@
 ========================================
 
 ----------------------------------------
-14: Does not parse
+15: Does not parse
 ----------------------------------------
 baz.org
 *.foo.com
@@ -15,6 +15,7 @@
 http://foo.*.com
 http://www.*
 http://*foo.com/
+http://foo.com/invalid#fragment
 
  
  	



Mime
View raw message