* Sanity check a given string that it exists, is not empty, * and does not contain special characters. */
| 193 | * and does not contain special characters. |
| 194 | */ |
| 195 | static const char *check_string(cmd_parms * cmd, const char *string) |
| 196 | { |
| 197 | if (!string || !*string || ap_strchr_c(string, '=') || ap_strchr_c(string, '&')) { |
| 198 | return apr_pstrcat(cmd->pool, cmd->directive->directive, |
| 199 | " cannot be empty, or contain '=' or '&'.", |
| 200 | NULL); |
| 201 | } |
| 202 | return NULL; |
| 203 | } |
| 204 | |
| 205 | static const char *set_cookie_form_location(cmd_parms * cmd, void *config, const char *location) |
| 206 | { |
no test coverage detected