diff options
Diffstat (limited to 'src/gmutil.c')
-rw-r--r-- | src/gmutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmutil.c b/src/gmutil.c index bc42690c..70a3608e 100644 --- a/src/gmutil.c +++ b/src/gmutil.c | |||
@@ -662,14 +662,14 @@ const iString *canonicalUrl_String(const iString *d) { | |||
662 | /* This is done separately to avoid the copy if %3A is not present; it's rare. */ | 662 | /* This is done separately to avoid the copy if %3A is not present; it's rare. */ |
663 | canon = copy_String(d); | 663 | canon = copy_String(d); |
664 | urlDecodePath_String(canon); | 664 | urlDecodePath_String(canon); |
665 | iString *dec = maybeUrlDecodeExclude_String(canon, "%/?:;#&= "); /* decode everything else in all parts */ | 665 | iString *dec = maybeUrlDecodeExclude_String(canon, "%/?:;#&+= "); /* decode everything else in all parts */ |
666 | if (dec) { | 666 | if (dec) { |
667 | set_String(canon, dec); | 667 | set_String(canon, dec); |
668 | delete_String(dec); | 668 | delete_String(dec); |
669 | } | 669 | } |
670 | } | 670 | } |
671 | else { | 671 | else { |
672 | canon = maybeUrlDecodeExclude_String(d, "%/?:;#&= "); | 672 | canon = maybeUrlDecodeExclude_String(d, "%/?:;#&+= "); |
673 | } | 673 | } |
674 | /* `canon` may now be NULL if nothing was decoded. */ | 674 | /* `canon` may now be NULL if nothing was decoded. */ |
675 | if (indexOfCStr_String(canon ? canon : d, " ") != iInvalidPos || | 675 | if (indexOfCStr_String(canon ? canon : d, " ") != iInvalidPos || |