tag rc6
[openwrt/svn-archive/openwrt.git] / openwrt / package / busybox / patches / 320-httpd_user_agent.patch
diff --git a/openwrt/package/busybox/patches/320-httpd_user_agent.patch b/openwrt/package/busybox/patches/320-httpd_user_agent.patch
deleted file mode 100644 (file)
index 4226bf3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
---- busybox-1.00.orig/networking/httpd.c       2004-10-08 10:03:29.000000000 +0200
-+++ busybox-1.00/networking/httpd.c    2006-02-06 14:04:23.000000000 +0100
-@@ -224,6 +224,7 @@
- #ifdef CONFIG_FEATURE_HTTPD_CGI
-   char *referer;
-+  char *user_agent;
- #endif
-   const char *configFile;
-@@ -1174,6 +1175,8 @@
- #endif
-       if(config->referer)
-       addEnv("HTTP", "REFERER", config->referer);
-+      if(config->user_agent)
-+      addEnv("HTTP", "USER_AGENT",config->referer);
-       /* set execve argp[0] without path */
-       argp[0] = strrchr( purl, '/' ) + 1;
-@@ -1682,6 +1685,10 @@
-               for(test = buf + 8; isspace(*test); test++)
-                       ;
-               config->referer = strdup(test);
-+      } else if ((strncasecmp(buf, "User-Agent:", 11) == 0)) {
-+              for(test = buf + 11; isspace(*test); test++)
-+                      ;
-+              config->user_agent = strdup(test);
-       }
- #endif