From 015e258e1801deeddd60fae38183d75b55f7bbb1 Mon Sep 17 00:00:00 2001 From: Miki Tolonen Date: Thu, 1 Jun 2017 09:57:44 +0300 Subject: [PATCH] stripped whitespace from course configure urls --- edit_course/operations/configure.py | 1 + 1 file changed, 1 insertion(+) diff --git a/edit_course/operations/configure.py b/edit_course/operations/configure.py index b7ac71cf2..56867c0e8 100644 --- a/edit_course/operations/configure.py +++ b/edit_course/operations/configure.py @@ -208,6 +208,7 @@ def configure_content(instance, url): if not url: return [_("Configuration URL required.")] try: + url = url.strip() response = requests.get(url) except Exception as e: return [_("Request failed: {}").format(str(e))]