From 702721625216dc30df24a7c9adf719831fae3202 Mon Sep 17 00:00:00 2001 From: Tomas Zigo <50632337+tmszi@users.noreply.github.com> Date: Wed, 23 Sep 2020 07:41:40 +0200 Subject: [PATCH] wx.metadata/m.csw.update: fix strip URL string (#281) --- grass7/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grass7/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py b/grass7/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py index d459629e86..0d9ef4a8cc 100644 --- a/grass7/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py +++ b/grass7/gui/wxpython/wx.metadata/m.csw.update/m.csw.update.py @@ -625,7 +625,7 @@ def _strip_url(self, url): :return str: stripped url """ - return url.strip().replace('\n', '') + return url.strip().split()[0].replace('\n', '') def _handle_multiple_url(self, url): """Parse multiple url from one string and valide them and check