From: Yehuda Sadeh Date: Wed, 14 Nov 2012 19:30:34 +0000 (-0800) Subject: rgw: relax date format check X-Git-Tag: v0.55~100 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ce284552060fe662a65db086e4e87fcfc3bcef7d;p=ceph.git rgw: relax date format check Don't try to parse beyond the GMT or UTC. Some clients use special date formatting. If we end up misparsing the date it'll fail in the authorization, so don't need to be too restrictive. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 62fda4b4d3c0..db8013e6120c 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -197,14 +197,6 @@ static bool check_gmt_end(const char *s) return false; } - /* trailing space */ - s += 3; - while (isspace(*s)) { - ++s; - } - if (*s) - return false; - return true; }