bug #1397749, Safari: space before PMA_linkOrButton link is part of the link

This commit is contained in:
Marc Delisle
2006-01-07 13:01:07 +00:00
parent 1a16113609
commit bf36b05181
2 changed files with 6 additions and 3 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2006-01-07 Marc Delisle <lem9@users.sourceforge.net>
* sql.php: bug #1395590 Safari Bookmark query fieldset float problem,
thanks to Ryan Schmidt
* libraries/common.lib.php: bug #1397749, Safari: space before
PMA_linkOrButton link is part of the link, thanks to Ryan Schmidt
2006-01-06 Marc Delisle <lem9@users.sourceforge.net>
* db_datadict.php, pdf_schema.php: bug #1389165, data dict shows all

View File

@@ -1922,9 +1922,10 @@ window.parent.updateTableTitle('<?php echo $uni_tbl; ?>', '<?php echo PMA_jsForm
// previously the limit was set to 2047, it seems 1000 is better
if (strlen($url) <= 1000) {
$ret = '<a href="' . $url . '" '
. implode(' ', $tag_params_strings) . '>' . "\n"
. ' ' . $message . '</a>' . "\n";
// no whitespace within an <a> else Safari will make it part of the link
$ret = "\n" . '<a href="' . $url . '" '
. implode(' ', $tag_params_strings) . '>'
. $message . '</a>' . "\n";
}
else {
// no spaces (linebreaks) at all