Projet

Général

Profil

« Précédent | Suivant » 

Révision b67cdd05

Ajouté par Matt Smith il y a presque 10 ans

Fix core dump on viewing invalid package log

Voir les différences:

usr/local/www/guiconfig.inc
612 612
		$grepline .= " | /usr/bin/egrep " . escapeshellarg(implode("|", $grepfor));
613 613
	if(is_array($grepinvert))
614 614
		$grepline .= " | /usr/bin/egrep -v " . escapeshellarg(implode("|", $grepinvert));
615
	if(file_exists($logfile) && filesize($logfile) == 0) {
615
	if (is_dir($logfile)) {
616
		$logarr = array("File $logfile is a directory.");
617
	} elsif(file_exists($logfile) && filesize($logfile) == 0) {
616 618
		$logarr = array("Log file started.");
617 619
	} else {
618 620
		if($config['system']['disablesyslogclog']) {

Formats disponibles : Unified diff