Changeset 97 for trunk/thirds
- Timestamp:
- Jan 30, 2011, 7:06:08 PM (14 years ago)
- Location:
- trunk/thirds/cgic206
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/thirds/cgic206/cgic.c
r96 r97 65 65 char *cgiCookie; 66 66 int cgiContentLength; 67 int cgiTreatUrlEncoding; 67 68 char *cgiAccept; 68 69 char *cgiUserAgent; … … 231 232 232 233 234 cgiTreatUrlEncoding=1; 233 235 if (cgiStrEqNc(cgiRequestMethod, "post")) { 236 cgiTreatUrlEncoding=0; 234 237 #ifdef CGICDEBUG 235 238 CGICDEBUGSTART … … 1106 1109 while (srcPos < len) { 1107 1110 int ch = cp[srcPos]; 1111 if(cgiTreatUrlEncoding==1) 1108 1112 switch (escapeState) { 1109 1113 case cgiEscapeRest: 1110 1114 if (ch == '%') { 1111 1115 escapeState = cgiEscapeFirst; 1112 } /*else if (ch == '+') {1116 } else if (ch == '+') { 1113 1117 s[dstPos++] = ' '; 1114 } */else {1115 s[dstPos++] = ch; 1118 } else { 1119 s[dstPos++] = ch; 1116 1120 } 1117 1121 break; … … 1126 1130 break; 1127 1131 } 1132 else 1133 s[dstPos++] = ch; 1128 1134 srcPos++; 1129 1135 } -
trunk/thirds/cgic206/cgic.h
r1 r97 139 139 #endif 140 140 int cgiContentLength; 141 142 extern 143 #ifdef __cplusplus 144 "C" 145 #endif 146 int cgiTreatUrlEncoding; 141 147 142 148 /* Pointer to CGI output. The cgiHeader functions should be used
Note: See TracChangeset
for help on using the changeset viewer.