From a6565a01376af755c1b0fc2c62b4a4f8d8b952bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 30 Jan 2023 20:11:54 +0100 Subject: better oom algo --- www/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'www/index.php') diff --git a/www/index.php b/www/index.php index 1fd25a2..e37fe7f 100644 --- a/www/index.php +++ b/www/index.php @@ -16,7 +16,7 @@

rezultati

 
 
@@ -26,7 +26,11 @@ foreach (explode(PHP_EOL, shell_exec($q)) as $f) { if (trim($f) == "") continue; $t = TorrentFile::load($f); - echo "
  • getInfoHash() . ">" . htmlspecialchars($t->getName()) . "
  • "; + $m = []; + preg_match("|/([a-fA-F0-9]*).torrent|", $f, $m); + if (count($m) < 2) + var_dump([$f, $m]); + echo "
  • " . htmlspecialchars($t->getName()) . "
  • "; } ?> -- cgit v1.2.3