diff options
author | NewEraCracker <neweracracker@gmail.com> | 2016-05-17 21:38:49 +0100 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-05-20 08:02:32 -0400 |
commit | 16fd5b50718cdcad19d2423667b44cd220572720 (patch) | |
tree | 0c79f59af0ef227477d1716795ec2106d5cea836 /src/usr/local/www/classes | |
parent | a2a0e99580665c7d715cc99ade99dfe9accacbdd (diff) | |
download | pfsense-16fd5b50718cdcad19d2423667b44cd220572720.zip pfsense-16fd5b50718cdcad19d2423667b44cd220572720.tar.gz |
Reduce maximum length of string to gettext()
This limit is set at 4096 on PHP 5.6: http://lxr.php.net/xref/PHP_5_6/ext/gettext/gettext.c#139
Bug report on forum: https://forum.pfsense.org/index.php?topic=110088.0
(cherry picked from commit 95f46512d9410b38b23d7778cec0bf8610e448cf)
Diffstat (limited to 'src/usr/local/www/classes')
-rw-r--r-- | src/usr/local/www/classes/Form/Input.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/classes/Form/Input.class.php b/src/usr/local/www/classes/Form/Input.class.php index 4cdfb28..036a1df 100644 --- a/src/usr/local/www/classes/Form/Input.class.php +++ b/src/usr/local/www/classes/Form/Input.class.php @@ -246,7 +246,7 @@ class Form_Input extends Form_Element if (isset($this->_help)) { /* Strings longer than this will break gettext. */ - if (strlen($this->_help) < 7620) { + if (strlen($this->_help) < 4096) { $help = gettext($this->_help); } else { $help = $this->_help; |