From ce284552060fe662a65db086e4e87fcfc3bcef7d Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Wed, 14 Nov 2012 11:30:34 -0800 Subject: [PATCH] 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 --- src/rgw/rgw_common.cc | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 62fda4b4d3c0b..db8013e6120c0 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; } -- 2.39.5