summaryrefslogtreecommitdiff
path: root/url.c
diff options
context:
space:
mode:
Diffstat (limited to 'url.c')
-rw-r--r--url.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/url.c b/url.c
index 6446654..5564b72 100644
--- a/url.c
+++ b/url.c
@@ -42,6 +42,9 @@ string cUrlEncode::doUrlSaveEncode(string in) {
case '&':
res += "%26";
break;
+ case '?':
+ res+= "%3f";
+ break;
case '%':
res += "%25";
break;
@@ -104,8 +107,8 @@ string cUrlEncode::doUrlSaveDecode(string input) {
case 0x3a: // ':'
res += "#3A";
break;
- case 63: // '?'
- res += "#3F";
+ case 0x3f: // '?'
+ res += "?";
break;
default:
res += char(x);