aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindex.cgi6
1 files changed, 4 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index 423189a..a6de819 100755
--- a/index.cgi
+++ b/index.cgi
@@ -63,9 +63,11 @@ def parse_pts_xhtml(pts):
result = searcher(tree)
for r in result:
- if r.text == "Changelog":
+ if not r.text:
+ continue
+ if r.text.lower() == "changelog":
cl_url = r.attrib['href']
- elif r.text == "browse":
+ elif r.text.lower() == "browse":
vcs_url = r.attrib['href']
parent = r.getparent()
vcs = parent.getchildren()[0].text.lower()