From: richard Date: Tue, 8 Oct 2002 03:27:24 +0000 (+0000) Subject: https URLs from config now recognised as valid (sf bug 619829) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5ef397cc424952d9d920b3df6a8aaeb1010bcf5a;p=roundup.git https URLs from config now recognised as valid (sf bug 619829) git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1323 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/CHANGES.txt b/CHANGES.txt index c8ae24f..d9f3fc9 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,7 @@ are given with the most recent entry first. - fixed register with no session (sf bug 618611) - fixed log / pid file path handling in roundup-server (sf bug 617981) - fixed old gadfly compatibiltiy problem, for sure this time (sf bug 612873) +- https URLs from config now recognised as valid (sf bug 619829) 2002-10-02 0.5.0 diff --git a/roundup/roundupdb.py b/roundup/roundupdb.py index e1f2b52..eb62444 100644 --- a/roundup/roundupdb.py +++ b/roundup/roundupdb.py @@ -15,7 +15,7 @@ # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. # -# $Id: roundupdb.py,v 1.69 2002-09-20 01:20:31 richard Exp $ +# $Id: roundupdb.py,v 1.70 2002-10-08 03:27:24 richard Exp $ __doc__ = """ Extending hyperdb with types specific to issue-tracking. @@ -290,7 +290,9 @@ class IssueClass: # simplistic check to see if the url is valid, # then append a trailing slash if it is missing base = self.db.config.TRACKER_WEB - if not isinstance(base , type('')) or not base.startswith('http://'): + if (not isinstance(base , type('')) or + not base.startswith('http://'): + not base.startswith('https://')): base = "Configuration Error: TRACKER_WEB isn't a " \ "fully-qualified URL" elif base[-1] != '/' :