| 43 | } |
| 44 | |
| 45 | static void add_str(ACL_VSTRING *buf, const char *name, const char *value) |
| 46 | { |
| 47 | if (ACL_VSTRING_LEN(buf) > 0) |
| 48 | acl_vstring_strcat(buf, "&"); |
| 49 | acl_vstring_strcat(buf, name); |
| 50 | acl_vstring_strcat(buf, "="); |
| 51 | |
| 52 | if (value && *value) { |
| 53 | char *tmp = acl_url_encode(value, NULL); |
| 54 | acl_vstring_strcat(buf, tmp); |
| 55 | acl_myfree(tmp); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | static void add_num(ACL_VSTRING *buf, const char *name, int value) |
| 60 | { |
no test coverage detected
searching dependent graphs…