MCPcopy Create free account
hub / github.com/apache/httpd / check_string

Function check_string

modules/aaa/mod_auth_form.c:195–203  ·  view source on GitHub ↗

* Sanity check a given string that it exists, is not empty, * and does not contain special characters. */

Source from the content-addressed store, hash-verified

193 * and does not contain special characters.
194 */
195static 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
205static const char *set_cookie_form_location(cmd_parms * cmd, void *config, const char *location)
206{

Callers 6

set_cookie_form_locationFunction · 0.70
set_cookie_form_usernameFunction · 0.70
set_cookie_form_passwordFunction · 0.70
set_cookie_form_methodFunction · 0.70
set_cookie_form_mimetypeFunction · 0.70
set_cookie_form_bodyFunction · 0.70

Calls 1

ap_strchr_cFunction · 0.85

Tested by

no test coverage detected