You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2010/08/04 20:58:02 UTC
svn commit: r982363 - /incubator/vcl/trunk/web/.ht-inc/computers.php
Author: fapeeler
Date: Wed Aug 4 18:58:02 2010
New Revision: 982363
URL: http://svn.apache.org/viewvc?rev=982363&view=rev
Log:
VCL-335
set maxlength to 6 and limit to 512000MB
Modified:
incubator/vcl/trunk/web/.ht-inc/computers.php
Modified: incubator/vcl/trunk/web/.ht-inc/computers.php
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/web/.ht-inc/computers.php?rev=982363&r1=982362&r2=982363&view=diff
==============================================================================
--- incubator/vcl/trunk/web/.ht-inc/computers.php (original)
+++ incubator/vcl/trunk/web/.ht-inc/computers.php Wed Aug 4 18:58:02 2010
@@ -696,7 +696,7 @@ function editOrAddComputer($state) {
}
print " <TR>\n";
print " <TH align=right>RAM (MB):</TH>\n";
- print " <TD><INPUT type=text name=ram maxlength=5 value=";
+ print " <TD><INPUT type=text name=ram maxlength=6 value=";
print $data["ram"] . "></TD>\n";
print " <TD>";
printSubmitErr(RAMERR);
@@ -1215,7 +1215,7 @@ function bulkAddComputer() {
print " </TR>\n";
print " <TR>\n";
print " <TH align=right nowrap>RAM (MB)*:</TH>\n";
- print " <TD><INPUT type=text name=ram maxlength=5 value=";
+ print " <TD><INPUT type=text name=ram maxlength=6 value=";
print $data["ram"] . "></TD>\n";
print " <TD>";
printSubmitErr(RAMERR);
@@ -2928,9 +2928,9 @@ function processComputerInput($checks=1)
$submitErr |= IPADDRERR;
$submitErrMsg[IPADDRERR] = "There is already a computer with this IP address.";
}*/
- if($return["ram"] < 32 || $return["ram"] > 20480) {
+ if($return["ram"] < 32 || $return["ram"] > 512000) {
$submitErr |= RAMERR;
- $submitErrMsg[RAMERR] = "RAM must be between 32 and 20480";
+ $submitErrMsg[RAMERR] = "RAM must be between 32 and 512000";
}
if($return["procspeed"] < 500 || $return["procspeed"] > 20000) {
$submitErr |= PROCSPEEDERR;
@@ -3156,9 +3156,9 @@ function processBulkComputerInput($check
}
}
}
- if($return["ram"] < 32 || $return["ram"] > 20480) {
+ if($return["ram"] < 32 || $return["ram"] > 512000) {
$submitErr |= RAMERR;
- $submitErrMsg[RAMERR] = "RAM must be between 32 and 20480";
+ $submitErrMsg[RAMERR] = "RAM must be between 32 and 512000";
}
if($return["procspeed"] < 500 || $return["procspeed"] > 20000) {
$submitErr |= PROCSPEEDERR;