diff --git a/ChangeLog b/ChangeLog
index bf708544c..36f4ff3f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
+ patch #2794819 [navi] Filter for displayed table names,
thanks to Michael Valushko - dylfin
- bug #2794840 [core] Cannot redeclare pma_tableheader()
+- rfe #2726479 [core] configurable maximal length of URL
3.2.1.0 (not yet released)
- bug #2799009 Login with ipv6 IP address breaks redirect
diff --git a/Documentation.html b/Documentation.html
index 16ca4cea8..003969036 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -1616,6 +1616,14 @@ $cfg['TrustedProxies'] =
a sysadmin would set this parameter to FALSE. Default is TRUE.
+
$cfg['LinkLengthLimit'] integer
+
+ Limit for length of URL in links. When length would be above this limit, it
+ is replaced by form with button.
+ This is required as some web servers (IIS) have problems with long URLs.
+ Default is 1000
.
+
+
$cfg['NaviWidth'] integer
Navi frame width in pixels. See themes/themename/layout.inc.php.
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 9bfba0d35..a4fd814cb 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -1668,8 +1668,7 @@ function PMA_linkOrButton($url, $message, $tag_params = array(),
$tag_params_strings[] = $par_name . '="' . $par_value . '"';
}
- // previously the limit was set to 2047, it seems 1000 is better
- if (strlen($url) <= 1000) {
+ if (strlen($url) <= $GLOBALS['cfg']['LinkLengthLimit']) {
// no whitespace within an else Safari will make it part of the link
$ret = "\n" . ''
diff --git a/libraries/config.default.php b/libraries/config.default.php
index 6954a166f..2caafbd89 100644
--- a/libraries/config.default.php
+++ b/libraries/config.default.php
@@ -2335,6 +2335,13 @@ $cfg['TrustedProxies'] = array();
*/
$cfg['CheckConfigurationPermissions'] = true;
+/**
+ * Limit for length of URL in links. When length would be above this limit, it
+ * is replaced by form with button.
+ * This is required as some web servers (IIS) have problems with long URLs.
+ */
+$cfg['LinkLengthLimit'] = 1000;
+
/*******************************************************************************
* SQL Parser Settings
*