diff options
author | NewEraCracker <neweracracker@gmail.com> | 2016-05-17 21:38:49 +0100 |
---|---|---|
committer | NewEraCracker <neweracracker@gmail.com> | 2016-05-17 21:38:49 +0100 |
commit | 95f46512d9410b38b23d7778cec0bf8610e448cf (patch) | |
tree | ffcf65393083b57ce2f58c6f8556eaf1b8e560e4 /src/usr/local/www/classes/Form/Input.class.php | |
parent | 17206e813c892330e089f4e6e6384f6a1973037c (diff) | |
download | pfsense-95f46512d9410b38b23d7778cec0bf8610e448cf.zip pfsense-95f46512d9410b38b23d7778cec0bf8610e448cf.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
Diffstat (limited to 'src/usr/local/www/classes/Form/Input.class.php')
-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; |