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

Function ap_is_url

server/util.c:2377–2390  ·  view source on GitHub ↗

* Check for an absoluteURI syntax (see section 3.2 in RFC2068). */

Source from the content-addressed store, hash-verified

2375 * Check for an absoluteURI syntax (see section 3.2 in RFC2068).
2376 */
2377AP_DECLARE(int) ap_is_url(const char *u)
2378{
2379 int x;
2380
2381 for (x = 0; u[x] != ':'; x++) {
2382 if ((!u[x]) ||
2383 ((!apr_isalnum(u[x])) &&
2384 (u[x] != '+') && (u[x] != '-') && (u[x] != '.'))) {
2385 return 0;
2386 }
2387 }
2388
2389 return (x ? 1 : 0); /* If the first character is ':', it's broken, too */
2390}
2391
2392AP_DECLARE(int) ap_ind(const char *s, char c)
2393{

Callers 8

ap_die_rFunction · 0.85
add_redirect_internalFunction · 0.85
translate_alias_redirFunction · 0.85
fixup_redirFunction · 0.85
ap_custom_responseFunction · 0.85
set_error_documentFunction · 0.85
ap_psignatureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected