cgi-bin: Use readonly="readonly" attribute on html input elements
authorAlf H√łgemark <alf@i100.no>
Tue, 18 Feb 2014 17:48:57 +0000 (17:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 14 May 2014 19:55:28 +0000 (21:55 +0200)
The proper way to mark readonly is to use readonly="readonly", not
readonly="true", like it was done some places.

html/cgi-bin/ovpnmain.cgi

index 21bd5ce..ce899e7 100644 (file)
@@ -2793,7 +2793,7 @@ if ($cgiparams{'ACTION'} eq "edit"){
     <table width='100%' border='0'>
     <tr><form method='post'>
        <td width='10%' nowrap='nowrap'>$Lang::tr{'ccd name'}:</td><td><input type='TEXT' name='ccdname' value='$cgiparams{'ccdname'}' /></td>
-       <td width='8%'>$Lang::tr{'ccd subnet'}:</td><td><input type='TEXT' name='ccdsubnet' value='$cgiparams{'ccdsubnet'}' readonly /></td></tr>
+       <td width='8%'>$Lang::tr{'ccd subnet'}:</td><td><input type='TEXT' name='ccdsubnet' value='$cgiparams{'ccdsubnet'}' readonly='readonly' /></td></tr>
        <tr><td colspan='4' align='right'><hr><input type='submit' value='$Lang::tr{'save'}' /><input type='hidden' name='ACTION' value='editsave'/>
        <input type='hidden' name='ccdname' value='$cgiparams{'ccdname'}'/><input type='submit' value='$Lang::tr{'cancel'}' />
        </td></tr>