]> git-server-git.apps.pok.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:51:36 +0000 (15:51 -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 62fda4b4d3c0b5b77c44b1d1a352b8cc4d056f54..db8013e6120c069aa71e827ac9f3acead0b4e90e 100644 (file)
@@ -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;
 }