diff options
Diffstat (limited to 'src/shared/cpaster/cgi.cpp')
-rw-r--r-- | src/shared/cpaster/cgi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/cpaster/cgi.cpp b/src/shared/cpaster/cgi.cpp index 0c64e02c52..6bee94682e 100644 --- a/src/shared/cpaster/cgi.cpp +++ b/src/shared/cpaster/cgi.cpp @@ -44,11 +44,11 @@ QString CGI::encodeURL(const QString &rawText) const char ch = *it; if (('A' <= ch && ch <= 'Z') || ('a' <= ch && ch <= 'z') - || ('0' <= ch && ch <= '9')) + || ('0' <= ch && ch <= '9')) { enc.append(QLatin1Char(ch)); - else if (ch == ' ') + } else if (ch == ' ') { enc.append(QLatin1Char('+')); - else { + } else { switch (ch) { case '-': case '_': case '(': case ')': |