diff --git a/html/ops/show_log.php b/html/ops/show_log.php
index 8a85e5decb..0e987b4276 100644
--- a/html/ops/show_log.php
+++ b/html/ops/show_log.php
@@ -11,7 +11,10 @@
exit("Error: couldn't get log_dir from config file.");
}
- if (!$f || !preg_match("/^ *([a-z_*]+[.]out *)+$/", $f)) {
+ $f = $_GET["f"];
+ $s = $_GET["s"];
+
+ if (!$f || !preg_match("/^ *([a-z_*]+[.](log|out) *)+$/", $f)) {
$f = '*.log';
}