Commit r2346: https://sourceforge.net/p/mrbs/code/2346/
------------------------------------------------------------------------
r2346 | cimorrison | 2012-07-22 15:02:39 +0100 (Sun, 22 Jul 2012) | 2 lines
Changed paths:
M /mrbs/trunk/web/edit_users.php
Fixed HTML5 validation errors
Added missing trailer on Add User form
------------------------------------------------------------------------
Index: mrbs/trunk/web/edit_users.php
===================================================================
--- mrbs/trunk/web/edit_users.php (revision 2345)
+++ mrbs/trunk/web/edit_users.php (revision 2346)
@@ -390,10 +390,11 @@
case 'name':
// you cannot change a username (even your own) unless you
have user editing rights
echo "<label for=\"$var_name\">$label_text</label>\n";
- echo "<input id=\"$var_name\" name=\"$var_name\"
type=\"text\" required aria-required " .
- ((isset($maxlength["users.$key"])) ? "maxlength=\"" .
$maxlength["users.$key"] . "\" " : '') .
- (($level < $min_user_editing_level) ?
"disabled=\"disabled\" " : "") .
- "value=\"" . htmlspecialchars($data[$key]) . "\">\n";
+ echo "<input id=\"$var_name\" name=\"$var_name\"
type=\"text\" required aria-required=\"true\"" .
+ ((isset($maxlength["users.$key"])) ? " maxlength=\""
. $maxlength["users.$key"] . "\"" : '') .
+ (($level < $min_user_editing_level) ? "
disabled=\"disabled\" " : "") .
+ (($data[$key] == '') ? '' : " value=\"" .
htmlspecialchars($data[$key]) . "\"") .
+ ">\n";
// if the field was disabled then we still need to pass
through the value as a hidden input
if ($level < $min_user_editing_level)
{
@@ -530,7 +531,8 @@
<?php
// Print footer and exit
- print_footer(TRUE);
+ output_trailer();
+ exit;
}
/*---------------------------------------------------------------------------*\
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits