parser: Improves the reading for the url in the redirect action

This commit is contained in:
Felipe Zimmerle
2017-08-15 14:46:18 -03:00
parent 8c66a1b4c2
commit 9ee412735d
4 changed files with 2945 additions and 2924 deletions

View File

@@ -109,6 +109,10 @@ std::string removeBracketsIfNeeded(std::string a) {
a.pop_back();
a.erase(0, 1);
}
if (a.length() > 1 && a.at(0) == '\'' && a.at(a.length()-1) == '\'') {
a.pop_back();
a.erase(0, 1);
}
return a;
}