summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@inktank.com>2012-11-14 11:30:34 -0800
committerYehuda Sadeh <yehuda@inktank.com>2012-11-14 15:49:47 -0800
commitddb40dec6e8d930fd63a71ef1c98279d6472e3e4 (patch)
tree9b63013606895fc6da4556f01708ca3af812570a /src
parente35e7e2bcb749e3ee00f1f93bc6b17bde8329414 (diff)
downloadceph-ddb40dec6e8d930fd63a71ef1c98279d6472e3e4.tar.gz
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 <yehuda@inktank.com>
Diffstat (limited to 'src')
-rw-r--r--src/rgw/rgw_common.cc8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc
index 6402a46ce71..6af2ca3cba2 100644
--- a/src/rgw/rgw_common.cc
+++ b/src/rgw/rgw_common.cc
@@ -151,14 +151,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;
}