Browse code

- find_not_quoted added to parser_f - minor bugs fixed in parse_nameaddr.c

Jan Janak authored on 25/03/2003 22:39:26
Showing 3 changed files
... ...
@@ -48,8 +48,6 @@ int parse_nameaddr(str* _s, name_addr_t* _a)
48 48
 		return -1;
49 49
 	}
50 50
 
51
-	memset(_a, 0, sizeof(name_addr_t));
52
-
53 51
 	_a->name.s = _s->s;
54 52
 
55 53
 	_a->uri.s = find_not_quoted(_s, '<'); 
... ...
@@ -324,7 +324,8 @@ int parse_params(str* _s, pclass_t _c, param_hooks_t* _h, param_t** _p)
324 324
 			}
325 325
 		}
326 326
 
327
-		if (_s->s[0] == ',') goto ok;
327
+		if (_s->s[0] == ',') goto ok; /* To be able to parse header parameters */
328
+		if (_s->s[0] == '>') goto ok; /* To be able to parse URI parameters */
328 329
 
329 330
 		if (_s->s[0] != ';') {
330 331
 			LOG(L_ERR, "parse_params(): Invalid character, ; expected\n");
... ...
@@ -27,6 +27,7 @@
27 27
  * History
28 28
  * --------
29 29
  * 2003-02-28 scratchpad compatibility abandoned (jiri)
30
+ * 2003-03-24 find_not_quoted function added (janakj)
30 31
  */
31 32
 
32 33
 
... ...
@@ -102,4 +103,5 @@ inline static char* find_not_quoted(str* _s, char _c)
102 103
 	return 0;
103 104
 }
104 105
 
106
+
105 107
 #endif /* parser_f_h */