From da470ce005652774049d346142b9509e89b31c6b Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Fri, 19 Sep 2014 00:33:01 -0400 Subject: [PATCH] Add maxlength of 6 for time correction in preferences * Supported formats (controlled by filterTimezoneInput) are: ** -12:34/01:23. It says, "Max is +14:00 and min is -12:00", both of which fit in 6 (if someone uses -24:00/+24:00, it's the same width anyway). ** If it's not in that format, it's treated as a simple hour, which means it should be from -12 to +14 (max 3). Bug: 70405 Change-Id: I47ec2c07929069cb5243c306a1c502751e57a31b --- includes/Preferences.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Preferences.php b/includes/Preferences.php index 84cf5af0f0..98fc936df4 100644 --- a/includes/Preferences.php +++ b/includes/Preferences.php @@ -706,6 +706,7 @@ class Preferences { 'options' => $tzOptions, 'default' => $tzSetting, 'size' => 20, + 'maxlength' => 6, 'section' => 'rendering/timeoffset', ); } -- 2.20.1