summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNewEraCracker <neweracracker@gmail.com>2016-05-17 21:38:49 +0100
committerStephen Beaver <sbeaver@netgate.com>2016-05-20 08:02:32 -0400
commit16fd5b50718cdcad19d2423667b44cd220572720 (patch)
tree0c79f59af0ef227477d1716795ec2106d5cea836 /src
parenta2a0e99580665c7d715cc99ade99dfe9accacbdd (diff)
downloadpfsense-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')
-rw-r--r--src/usr/local/www/classes/Form/Input.class.php2
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;
OpenPOWER on IntegriCloud