Home
last modified time | relevance | path

Searched hist:"428 df3066fac74a7f2359dc27c889c65e87e4db3" (Results 1 – 1 of 1) sorted by relevance

/dokuwiki/lib/plugins/logviewer/
H A Dadmin.php428df3066fac74a7f2359dc27c889c65e87e4db3 Wed Feb 01 01:54:44 UTC 2023 fiwswe <53953985+fiwswe@users.noreply.github.com> Avoid indexing into log line

Should fix #3868

A log file should be treated as untrusted input. Thus we can make no assumptions about its content. Assuming a line has at least 2 characters length is an assumption we can avoid by using `substr($line, 0, 2) === ' '` instead of `$line[0] === ' ' && $line[1] === ' '`. No need to separately check for empty or `null` either.