bug #1602335, browse distinct values and name containing a quote

This commit is contained in:
Marc Delisle
2006-11-26 09:48:06 +00:00
parent 1f02ff0a22
commit 291ac614fd
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - ChangeLog
$Id$ $Id$
$Source$ $Source$
2006-11-26 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties_structure.php: bug #1602335, browse distinct values
and name containing a quote
2006-11-19 Michal Čihař <michal@cihar.com> 2006-11-19 Michal Čihař <michal@cihar.com>
* libraries/unzip.lib.php: Fix check for encrypted file (bug #1596304). * libraries/unzip.lib.php: Fix check for encrypted file (bug #1596304).

View File

@@ -366,7 +366,7 @@ while ($row = PMA_DBI_fetch_assoc($fields_rs)) {
<td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td> <td nowrap="nowrap"><?php if (isset($row['Default'])) { echo $row['Default']; } ?></td>
<td nowrap="nowrap"><?php echo $row['Extra']; ?></td> <td nowrap="nowrap"><?php echo $row['Extra']; ?></td>
<td align="center"> <td align="center">
<a href="sql.php?<?php echo $url_query; ?>&amp;sql_query=<?php echo urlencode('SELECT COUNT(*) AS `' . $strRows . '`, `' . $row['Field'] . '` FROM `' . $table . '` GROUP BY `' . $row['Field'] . '` ORDER BY `' . $row['Field'] . '`'); ?>"> <a href="sql.php?<?php echo $url_query; ?>&amp;sql_query=<?php echo urlencode('SELECT COUNT(*) AS ' . PMA_backquote($strRows) . ', ' . PMA_backquote($row['Field']) . ' FROM ' . PMA_backquote($table) . ' GROUP BY ' . PMA_backquote($row['Field']) . ' ORDER BY ' . PMA_backquote($row['Field']) . ''); ?>">
<?php echo $titles['BrowseDistinctValues']; ?></a> <?php echo $titles['BrowseDistinctValues']; ?></a>
</td> </td>
<?php if (! $tbl_is_view && ! $db_is_information_schema) { ?> <?php if (! $tbl_is_view && ! $db_is_information_schema) { ?>