1
0
Fork 0

reverting change to wap/wsp_header.c for quote (")

This commit is contained in:
bagyenda 2005-07-05 09:26:02 +00:00
parent f3fff0f45e
commit 17d3517eec
1 changed files with 16 additions and 0 deletions

View File

@ -914,3 +914,19 @@ diff -Naur gateway-1.4.0/test/test_ppg.c gateway-1.4.0-patched/test/test_ppg.c
wait_seconds = atof(optarg);
break;
diff -Naur gateway-1.4.0/wap/wsp_headers.c gateway-1.4.0-patched/wap/wsp_headers.c
--- gateway-1.4.0/wap/wsp_headers.c 2004-08-08 23:39:56.000000000 +0300
+++ gateway-1.4.0-patched/wap/wsp_headers.c 2005-07-05 12:19:53.000000000 +0300
@@ -122,10 +122,9 @@
} else if (val > 127) {
*well_known_value = val - 128;
return WSP_FIELD_VALUE_ENCODED;
- } else if (val == WSP_QUOTE) { /* 127 */
+ } else if (val == WSP_QUOTE || val == '"') { /* 127 or quote -- this is not ideal, but... */
*well_known_value = -1;
- /* We already consumed the Quote */
- return WSP_FIELD_VALUE_NUL_STRING;
+ return WSP_FIELD_VALUE_NUL_STRING;
} else {
*well_known_value = -1;
/* Un-parse the character we just read */