aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
diff options
context:
space:
mode:
authorlmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 14:35:18 +0000
committerlmadsen <lmadsen@f38db490-d61c-443f-a65b-d21fe96a405b>2010-05-17 14:35:18 +0000
commit1f639957874b9127577250b359fa5c10c5d5c011 (patch)
tree19f05e9571278b3b47de302dd9f41aab05d5bd9e /main/http.c
parent9556962a6021cafeb582f5e391d0040290ba402f (diff)
Manager cookies are not compatible with RFC2109.
The Version field in the cookies we're setting contain quotes around the version number which is not compatible with RFC2109 and breaks some implementations. (closes issue #17231) Reported by: ecarruda Patches: manager_rfc2109-trunk-v1.patch uploaded by ecarruda (license 559) manager_rfc2109-1.6.2-v1.patch uploaded by ecarruda (license 559) Tested by: ecarruda, russell git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@263456 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/http.c')
-rw-r--r--main/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/http.c b/main/http.c
index f8d9f1e52..213701d61 100644
--- a/main/http.c
+++ b/main/http.c
@@ -572,7 +572,7 @@ char *ast_http_setcookie(const char *var, const char *val, int expires, char *bu
{
char *c;
c = buf;
- ast_build_string(&c, &buflen, "Set-Cookie: %s=\"%s\"; Version=\"1\"", var, val);
+ ast_build_string(&c, &buflen, "Set-Cookie: %s=\"%s\"; Version=1", var, val);
if (expires)
ast_build_string(&c, &buflen, "; Max-Age=%d", expires);
ast_build_string(&c, &buflen, "\r\n");