Lots of fixes, changes, and new goodies.

This commit is contained in:
Sean B. Palmer
2008-02-23 12:16:43 +00:00
parent 7931fab145
commit 2fb0058943
13 changed files with 94 additions and 40 deletions

View File

@@ -7,7 +7,7 @@ Licensed under the Eiffel Forum License 2.
http://inamidst.com/phenny/
"""
import re, urllib
import re, urllib, urlparse
from htmlentitydefs import name2codepoint
import web
from tools import deprecated
@@ -66,7 +66,7 @@ def f_title(self, origin, match, args):
status = str(info[1])
info = info[0]
if status.startswith('3'):
uri = info['Location']
uri = urlparse.urljoin(uri, info['Location'])
else: break
redirects += 1