bug #1748633 Incorrect parameter validation for VIEWs
This commit is contained in:
@@ -88,6 +88,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
|
|||||||
- bug #1745257 Invalid DB name is still displayed
|
- bug #1745257 Invalid DB name is still displayed
|
||||||
- bug #1730367 Calendar "Go" has no effect
|
- bug #1730367 Calendar "Go" has no effect
|
||||||
- patch #1750500 Smaller file for favicon.ico, thanks to Thijs Kinkhorst
|
- patch #1750500 Smaller file for favicon.ico, thanks to Thijs Kinkhorst
|
||||||
|
- bug #1748633 Incorrect parameter validation for VIEWs
|
||||||
|
|
||||||
2.10.2.0 (2007-06-15)
|
2.10.2.0 (2007-06-15)
|
||||||
|
|
||||||
|
@@ -275,8 +275,12 @@ function PMA_displayTableNavigation($pos_next, $pos_prev, $sql_query)
|
|||||||
|
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
<?php // if displaying a VIEW, $unlim_num_rows could be zero because
|
||||||
|
// of $cfg['MaxExactCountViews']; in this case, avoid passing
|
||||||
|
// the 5th parameter to checkFormElementInRange()
|
||||||
|
// (this means we can't validate the upper limit ?>
|
||||||
<form action="sql.php" method="post"
|
<form action="sql.php" method="post"
|
||||||
onsubmit="return (checkFormElementInRange(this, 'session_max_rows', '<?php echo str_replace('\'', '\\\'', $GLOBALS['strInvalidRowNumber']); ?>', 1) && checkFormElementInRange(this, 'pos', '<?php echo str_replace('\'', '\\\'', $GLOBALS['strInvalidRowNumber']); ?>', 0, <?php echo $unlim_num_rows - 1; ?>))">
|
onsubmit="return (checkFormElementInRange(this, 'session_max_rows', '<?php echo str_replace('\'', '\\\'', $GLOBALS['strInvalidRowNumber']); ?>', 1) && checkFormElementInRange(this, 'pos', '<?php echo str_replace('\'', '\\\'', $GLOBALS['strInvalidRowNumber']); ?>', 0<?php echo $unlim_num_rows > 0 ? ',' . $unlim_num_rows - 1 : ''; ?>))">
|
||||||
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>
|
||||||
<input type="hidden" name="sql_query" value="<?php echo $html_sql_query; ?>" />
|
<input type="hidden" name="sql_query" value="<?php echo $html_sql_query; ?>" />
|
||||||
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
|
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
|
||||||
|
Reference in New Issue
Block a user