ports/net-mgmt/cacti/files/patch-lib_installer.php
Rodrigo Osorio 073124bd04 net-mgmt/cacti: Update to 1.2.17
Full changelog: https://github.com/Cacti/cacti/releases/tag/release%2F1.2.17

PR:		256325
Security:	CVE-2020-35701
MFH:		2021Q2
Approved by:	Michael Muenz <m.muenz@gmail.com> (maintainer)
2021-06-10 16:12:07 +02:00

11 lines
460 B
PHP

--- lib/installer.php.orig 2021-06-01 00:15:30.652736000 +0000
+++ lib/installer.php 2021-06-01 00:16:32.509002000 +0000
@@ -3404,7 +3404,7 @@
$page_nr = 1;
$total_rows = 500;
- $logcontents = tail_file($config['base_path'] . '/log/cacti.log', 100, -1, ' INSTALL:' , $page_nr, $total_rows);
+ $logcontents = tail_file('/var/log/cacti/log', 100, -1, ' INSTALL:' , $page_nr, $total_rows);
$output_log = '';
foreach ($logcontents as $logline) {