fix search when pressing enter in textbox (#7162)

This commit is contained in:
Antonio Fernandez 2024-10-18 22:57:15 -04:00 committed by GitHub
parent 9af1f46079
commit b801b8a5c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 11 deletions

View File

@ -213,18 +213,18 @@
echo "<div style='padding-bottom: 10px; text-align: right; color: #fff; margin-bottom: 15px; border-bottom: 1px solid #fff;'>";
$user_file_size = '32768';
if (isset($_POST['submit'])) {
if (!is_numeric($_POST['size'])) {
//should generate log warning here...
$user_file_size = 512 * 1024;
}
else {
$user_file_size = $_POST['size'] * 1024;
}
if (!empty($_REQUEST['filter'])) {
$filter = $_REQUEST['filter'];
}
if (!is_numeric($_POST['size'])) {
//should generate log warning here...
$user_file_size = 512 * 1024;
}
else {
$user_file_size = $_POST['size'] * 1024;
}
if (!empty($_REQUEST['filter'])) {
$filter = $_REQUEST['filter'];
}
//echo "Log File Size: " . $file_size . " bytes. <br />";
echo " ".$text['label-displaying']." ".number_format($user_file_size,0,'.',',')." of ".number_format($file_size,0,'.',',')." ".$text['label-bytes'].".";
echo "</div>";