summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/main.cpp4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d7d47e54..30665053 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-07-18 Bjørn Lindeijer <bjorn@lindeijer.nl>
+
+ * src/main.cpp: Remove possible trailing slash at the end of the
+ update host, since otherwise there'll be two of them.
+
2008-07-16 Lloyd Bryant <lloyd_bryant@netzero.net>
* src/logindata.h, src/gui/char_server.cpp, src/gui/char_server.h,
diff --git a/src/main.cpp b/src/main.cpp
index e13ee390..bc3d5449 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -162,6 +162,10 @@ void setUpdatesDir()
config.getValue("updatehost", "http://updates.thanaworld.org");
}
+ // Remove any trailing slash at the end of the update host
+ if (updateHost.at(updateHost.size() - 1) == '/')
+ updateHost.resize(updateHost.size() - 1);
+
// Parse out any "http://" or "ftp://", and set the updates directory
size_t pos;
pos = updateHost.find("://");