Empty commit

This commit is contained in:
Git 2011-12-19 08:00:18 +00:00
parent 04e5df4d82
commit 1aea1dcd83
2 changed files with 11 additions and 4 deletions

View File

@ -1161,7 +1161,7 @@ CREATE TABLE `users_main` (
`Class` tinyint(2) NOT NULL DEFAULT '5',
`Uploaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`Downloaded` bigint(20) unsigned NOT NULL DEFAULT '0',
`Title` varchar(255) NOT NULL DEFAULT '',
`Title` text NOT NULL,
`Enabled` enum('0','1','2') NOT NULL DEFAULT '0',
`Paranoia` text,
`Visible` enum('1','0') NOT NULL DEFAULT '1',

View File

@ -266,9 +266,16 @@
}
if ($Title!=db_string($Cur['Title']) && check_perms('users_edit_titles')) {
$UpdateSet[]="Title='$Title'";
$EditSummary[]="title changed to $Title";
$LightUpdates['Title']=$_POST['Title'];
// Using the unescaped value for the test to avoid confusion
if (strlen($_POST['Title']) > 1024) {
error("Custom titles can be at most 1024 characters.");
header("Location: user.php?id=".$UserID);
die();
} else {
$UpdateSet[]="Title='$Title'";
$EditSummary[]="title changed to $Title";
$LightUpdates['Title']=$_POST['Title'];
}
}
if ($Donor!=$Cur['Donor'] && check_perms('users_give_donor')) {