Lines Matching refs:path

427 static char *escape_backref(apr_pool_t *p, const char *path, const char *escapeme, int noplus);
494 * | URI and path functions
639 static char *escape_backref(apr_pool_t *p, const char *path, const char *escapeme, int noplus) {
640 char *copy = apr_palloc(p, 3 * strlen(path) + 3);
641 const unsigned char *s = (const unsigned char *)path;
682 * escape absolute uri, which may or may not be path oriented.
855 /* now check whether we could reduce it to a local path... */
895 * stat() only the first segment of a path
897 static int prefix_stat(const char *path, apr_pool_t *pool)
899 const char *curpath = path;
939 * substitute the prefix path 'match' in 'input' with 'subst' (RewriteBase)
1788 * Determine the correct URI path in perdir context
1842 const char *path;
1849 path = ctx->perdir ? la_u(ctx) : ctx->uri;
1850 rr = ap_sub_req_lookup_uri(path, r, NULL);
1856 rewritelog((r, 5, ctx->perdir, "lookahead: path=%s var=%s "
1857 "-> val=%s", path, var+5, result));
1864 path = ctx->uri;
1865 if (ctx->perdir && *path == '/') {
1868 * path is! In this case behave like LA-U.
1870 rr = ap_sub_req_lookup_uri(path, r, NULL);
1879 path = apr_pstrcat(r->pool, conf->directory, path,
1883 rr = ap_sub_req_lookup_file(path, r, NULL);
1891 rewritelog((r, 5, ctx->perdir, "lookahead: path=%s var=%s "
1892 "-> val=%s", path, var+5, result));
2505 char *path;
2531 path = expires ? apr_strtok(NULL, ":", &tok_cntx) : NULL;
2532 secure = path ? apr_strtok(NULL, ":", &tok_cntx) : NULL;
2555 "; path=", path ? path : "/",
2855 static void *config_perdir_create(apr_pool_t *p, char *path)
2867 if (path == NULL) {
2872 if (path[strlen(path)-1] == '/') {
2873 a->directory = apr_pstrdup(p, path);
2876 a->directory = apr_pstrcat(p, path, "/", NULL);
2940 if (cmd->path == NULL) {
3004 if (cmd->path == NULL) { /* is server command */
3040 return apr_pstrcat(cmd->pool, "RewriteMap: bad path to txt map: ",
3052 return apr_pstrcat(cmd->pool, "RewriteMap: bad path to rnd map: ",
3091 return apr_pstrcat(cmd->pool, "RewriteMap: bad path to dbm map: ",
3127 return apr_pstrcat(cmd->pool, "RewriteMap: bad path to prg map: ",
3150 return apr_pstrcat(cmd->pool, "RewriteMap: bad path to txt map: ",
3179 if (cmd->path == NULL || dconf == NULL) {
3295 if (cmd->path == NULL) { /* is server command */
3721 if (cmd->path == NULL) { /* is server command */
3781 if (cmd->path == NULL) { /* is server command */
3886 "path=%s -> status=%d", input, rsub->status));
3900 rewritelog((r, 5, NULL, "RewriteCond file (-F) check: path=%s "
4058 rewritelog((r, 3, ctx->perdir, "add path info postfix: %s -> %s%s",
4063 /* Additionally we strip the physical path from the url to match
4185 * (1) it's an absolute URL path and
4563 * first rule really is a URL-path, avoiding security issues with
4568 rewritelog((r, 8, NULL, "Declining, request-URI '%s' is not a URL-path. "
4745 /* it was finally rewritten to a local path */
4751 rewritelog((r, 2, NULL, "local path result: %s", r->filename));
4753 /* the filename must be either an absolute local path or an
4768 * then no absolute path can be created, e.g. via
4969 * the following assumes, that the actual url-path
4970 * may be prefixed by the current directory path and
4971 * tries to replace the system path with the RewriteBase
5038 /* it was finally rewritten to a local path */
5048 rewritelog((r, 2, NULL, "local path result: %s", r->filename));
5050 /* the filename must be either an absolute local path or an
5114 * This allows a relative substitution on a path found by mod_userdir