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

Function la_u

modules/mappers/mod_rewrite.c:1957–1970  ·  view source on GitHub ↗

* lookahead helper function * Determine the correct URI path in perdir context */

Source from the content-addressed store, hash-verified

1955 * Determine the correct URI path in perdir context
1956 */
1957static APR_INLINE const char *la_u(rewrite_ctx *ctx)
1958{
1959 rewrite_perdir_conf *conf;
1960
1961 if (*ctx->uri == '/') {
1962 return ctx->uri;
1963 }
1964
1965 conf = ap_get_module_config(ctx->r->per_dir_config, &rewrite_module);
1966
1967 return apr_pstrcat(ctx->r->pool, conf->baseurl
1968 ? conf->baseurl : conf->directory,
1969 ctx->uri, NULL);
1970}
1971
1972/*
1973 * generic variable lookup

Callers 1

lookup_variableFunction · 0.85

Calls 1

ap_get_module_configFunction · 0.85

Tested by

no test coverage detected