Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
620d0c19
Commit
620d0c19
authored
Jan 09, 2009
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix up the date parsing for CRL expired field so that it does not
go into the DB as null.
parent
7de25b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
protogeni/lib/GeniCertificate.pm.in
protogeni/lib/GeniCertificate.pm.in
+4
-2
No files found.
protogeni/lib/GeniCertificate.pm.in
View file @
620d0c19
#
!/usr/bin/perl -wT
#
#
EMULAB
-
COPYRIGHT
#
Copyright
(
c
)
2008
University
of
Utah
and
the
Flux
Group
.
#
Copyright
(
c
)
2008
-
2009
University
of
Utah
and
the
Flux
Group
.
#
All
rights
reserved
.
#
package
GeniCertificate
;
...
...
@@ -413,9 +413,11 @@ sub StoreCRL($$$)
$
expires
=~
s
/^
nextupdate
=//
i
;
my
$
safe_cert
=
DBQuoteSpecial
($
string
);
my
$
safe_expires
=
DBQuoteSpecial
($
expires
);
my
$
dateconvert
=
"DATE_SUB(STR_TO_DATE($safe_expires, "
.
"'%b %e %T %Y'), INTERVAL 1 DAY)"
;
DBQueryWarn
(
"replace into geni_crls set "
.
" uuid='$uuid', created=now(), expires=$
safe_expires
, "
.
" uuid='$uuid', created=now(), expires=$
dateconvert
, "
.
" cert=$safe_cert"
)
or
return
-
1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment