From: Matthew Flaschen Date: Fri, 19 Sep 2014 04:33:01 +0000 (-0400) Subject: Add maxlength of 6 for time correction in preferences X-Git-Tag: 1.31.0-rc.0~13559^2~1 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=da470ce005652774049d346142b9509e89b31c6b;p=lhc%2Fweb%2Fwiklou.git 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 --- 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', ); }