summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-28 21:52:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-28 21:52:49 +0300
commita9345c0e74408538488b0a329202ce611a4a0072 (patch)
tree9e8df5b62f4337286f4785fa7b62a3b256b81b57 /src/utils/stringutils.cpp
parent1d5e1e10214b2f992888045dc750c8d8b7937b21 (diff)
downloadmanaverse-a9345c0e74408538488b0a329202ce611a4a0072.tar.gz
manaverse-a9345c0e74408538488b0a329202ce611a4a0072.tar.bz2
manaverse-a9345c0e74408538488b0a329202ce611a4a0072.tar.xz
manaverse-a9345c0e74408538488b0a329202ce611a4a0072.zip
Add support for auto download content fixes.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 361bc860c..176c5499c 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -578,3 +578,11 @@ bool findCutFirst(std::string &str1, std::string str2)
}
return false;
}
+
+std::string &removeProtocol(std::string &url)
+{
+ int i = url.find("://");
+ if (i != (int)std::string::npos)
+ url = url.substr(i + 3);
+ return url;
+}