bug 913704

This commit is contained in:
Marc Delisle
2004-03-18 13:22:10 +00:00
parent ca802dd2da
commit 78b92f76e1
2 changed files with 3 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2004-03-18 Marc Delisle <lem9@users.sourceforge.net>
* lang/romanian: Updated, thanks to Valics Lehel.
* libraries/common.lib.php: bug 913704, delete link in db search
2004-03-13 Marc Delisle <lem9@users.sourceforge.net>
* sql.php: bug 913630: did not detect correctly DELETE FROM table

View File

@@ -1712,7 +1712,8 @@ if (typeof(document.getElementById) != 'undefined'
*/
function PMA_linkOrButton($url, $message, $js_conf, $allow_button = TRUE)
{
if (strlen($url) <= 2047) {
// previously the limit was set to 2047, it seems 1000 is better
if (strlen($url) <= 1000) {
$onclick_url = (empty($js_conf) ? '' : ' onclick="return confirmLink(this, \'' . $js_conf . '\')"');
$link_or_button = ' <a href="' . $url . '"' . $onclick_url . '>' . "\n"
. ' ' . $message . '</a>' . "\n";