Lines Matching refs:value

319 static const char *imap_url(request_rec *r, const char *base, const char *value)
321 /* translates a value into a URL. */
329 if (!strcasecmp(value, "map") || !strcasecmp(value, "menu")) {
333 if (!strcasecmp(value, "nocontent") || !strcasecmp(value, "error")) {
334 return apr_pstrdup(r->pool, value); /* these are handled elsewhere,
338 if (!strcasecmp(value, "referer")) {
344 /* XXX: This used to do *value = '\0'; ... which is totally bogus
345 * because it hammers the passed in value, which can be a string
350 value = ""; /* if 'referer' but no referring page,
351 null the value */
355 string_pos_const = value;
363 return apr_pstrdup(r->pool, value);
367 if (value && *value) {
368 return apr_pstrdup(r->pool, value); /* no base: use what is given */
370 /* no base, no value: pick a simple default */
375 if (ap_strchr_c(base, '/') == NULL && (!strncmp(value, "../", 3)
376 || !strcmp(value, ".."))) {
389 if (value[0] == '/') {
410 while (!strncmp(value, "../", 3) || !strcmp(value, "..")) {
433 value += 2; /* jump over the '..' that we found in the
434 value */
442 if (!strncmp(value, "/../", 4) || !strcmp(value, "/..")) {
443 value++; /* step over the '/' if there are more '..'
445 '/' on value after the last '..', but get
449 } /* by this point, value does not start
452 if (value && *value) {
453 return apr_pstrcat(r->pool, my_base, value, NULL);
581 char *value;
693 value = string_pos;
694 while (*string_pos && !apr_isspace(*string_pos)) { /* past value */
706 base = imap_url(r, NULL, value);
716 mapdflt = imap_url(r, NULL, value);
762 redirect = imap_url(r, base, value);
767 href_text ? href_text : value);
782 redirect = imap_url(r, base, value);
795 redirect = imap_url(r, base, value);
808 redirect = imap_url(r, base, value);
820 closest = apr_pstrdup(r->pool, value);