Last modified by khushi kapoor on 2018/09/26 16:20

From version Icon 65.1 Icon
edited by Henry Story
on 2010/05/23 12:57
Change comment: There is no comment for this version
To version Icon 66.1 Icon
edited by Henry Story
on 2010/05/23 12:59
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -113,10 +113,6 @@
113 113   #set( $addKey = false )
114 114  #end
115 115  
116 -#set ( $hf = $mathtool.toDouble("22.3") )
117 -
118 -HOURS = $hf
119 -
120 120  #if (!$nodebug) #### if we come from the user's page we don't create a key
121 121  
122 122  #if( $request.csrdata ) ## for Microsoft Browsers (see javascript rewriting of html)
... ... @@ -131,10 +131,9 @@
131 131   $cert.setSubjectCommonName( $request.cn )
132 132  
133 133   #set ($hours = $request.getParameter('hours') )
134 - #set ( $hf = 0.0 )
130 +
135 135   #if ($hours && $hours ne "")
136 - #set ( $hf = $hf.valueOf($hours) )
137 - #set ( $hf = $hf + 2 )
132 + #set ( $hf = $mathtool.toDouble($hours) + 2)
138 138   $cert.addDurationInHours( $hf )
139 139   #else
140 140   $cert.addDurationInHours( "2" )