]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: relax date format check
authorYehuda Sadeh <yehuda@inktank.com>
Wed, 14 Nov 2012 19:30:34 +0000 (11:30 -0800)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 14 Nov 2012 23:49:47 +0000 (15:49 -0800)
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>
src/rgw/rgw_common.cc

index 6402a46ce710686d0f5f965e6deaf40bedc35ee6..6af2ca3cba2669c6aa1f4bca135747737cc575e2 100644 (file)
@@ -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;
 }