diff --git a/index.php b/index.php index 202f045..913a2ea 100644 --- a/index.php +++ b/index.php @@ -58,9 +58,9 @@
new download +
-
@@ -94,7 +94,12 @@ if ($filter && str_contains(cleanstring($content), cleanstring($filter))) { $pos = strpos(cleanstring($content), cleanstring($filter)); - echo ' ' . $filter . substr($content, $pos + strlen($filter), 42) . ''; + $start = max($pos - 21, 0); + echo ' '; + echo substr($content, $start, min(21, $pos)); + echo '' . $filter . ''; + echo substr($content, $pos + strlen($filter), 21); + echo ''; } echo''; }