]> granicus.if.org Git - apache/commitdiff
fix r1416889 a different way -- the referer should be const too.
authorEric Covener <covener@apache.org>
Sat, 15 Dec 2012 14:27:52 +0000 (14:27 +0000)
committerEric Covener <covener@apache.org>
Sat, 15 Dec 2012 14:27:52 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422253 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_imagemap.c

index 58fc1e4cfd21fad4e5ce509fc1dc898acf28cc0a..1857760b37ea3f08b9ca09e33de41b0ea1d48b00 100644 (file)
@@ -323,7 +323,7 @@ static const char *imap_url(request_rec *r, const char *base, const char *value)
     char *string_pos = NULL;
     const char *string_pos_const = NULL;
     char *directory = NULL;
-    char *referer = NULL;
+    const char *referer = NULL;
     char *my_base;
 
     if (!strcasecmp(value, "map") || !strcasecmp(value, "menu")) {
@@ -336,7 +336,7 @@ static const char *imap_url(request_rec *r, const char *base, const char *value)
     }
 
     if (!strcasecmp(value, "referer")) {
-        referer = (char *)apr_table_get(r->headers_in, "Referer");
+        referer = apr_table_get(r->headers_in, "Referer");
         if (referer && *referer) {
             return referer;
         }