Skip to content

Commit b6fb921

Browse files
committed
Change url encoding of spaces from + to %20 (#5232)
1 parent b290c44 commit b6fb921

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mapstring.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -1135,9 +1135,7 @@ char *msEncodeUrlExcept(const char *data, const char except)
11351135
code = (char*)msSmallMalloc(strlen(data)+inc+1);
11361136

11371137
for (j=code, i=data; *i!='\0'; i++, j++) {
1138-
if (*i == ' ')
1139-
*j = '+';
1140-
else if ( except != '\0' && *i == except ) {
1138+
if ( except != '\0' && *i == except ) {
11411139
*j = except;
11421140
} else if (msEncodeChar(*i)) {
11431141
ch = *i;

0 commit comments

Comments
 (0)