Hi,
going through the code of pootle I noticed two places, where specifically
"http://" was mentioned. Maybe I am wrong, but shouldn't https be accepted
there, too?
The attached patch would allow "https://" at these places, too.
Since I am not sure, how to trigger the different behaviour, I did not test,
whether this change is necessary or not.
Any oppinions?
regards,
Lars
Index: pootle.py
===================================================================
--- pootle.py (Revision 6027)
+++ pootle.py (Arbeitskopie)
@@ -221,7 +221,7 @@
argdict = newargdict
# Strip of the base url
- baseurl = re.sub('http://[^/]', '', self.instance.baseurl)
+ baseurl = re.sub('https?://[^/]', '', self.instance.baseurl)
# Split up and remove empty parts
basepathwords = filter(None, baseurl.split('/'))
while pathwords and basepathwords and basepathwords[0] == pathwords[0]:
Index: users.py
===================================================================
--- users.py (Revision 6027)
+++ users.py (Arbeitskopie)
@@ -406,7 +406,8 @@
activationcode = self.makeactivationcode(users, username)
activationlink = ""
message = session.localize("A Pootle account has been created for you using this email address.\n")
- if session.instance.baseurl.startswith("http://"):
+ if session.instance.baseurl.startswith("http://") or \
+ session.instance.baseurl.startswith("https://"):
message += session.localize("To activate your account, follow this link:\n")
activationlink = session.instance.baseurl
if not activationlink.endswith("/"):
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Translate-pootle mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/translate-pootle