From 0a8d134f3f3c38ea942ff0a9b6049e765da1a8ca Mon Sep 17 00:00:00 2001 From: Kirill A. Korinskiy Date: Tue, 8 Dec 2009 16:17:58 +0300 Subject: [PATCH] Fix a md5 variables: missing 0 in hash Cc: catap@catap.ru --- src/http/ngx_http_variables.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 4218e3b..8c4c123 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -1039,7 +1039,7 @@ ngx_http_variable_md5(ngx_http_request_t *r, ngx_http_variable_value_t *v, p = v->data; for (i = 0; i < 16; i++) { - p = ngx_sprintf(p, "%01XD", hash[i]); + p = ngx_sprintf(p, "%02XD", hash[i]); } v->valid = 1; -- 1.6.2