Skip to content

Commit

Permalink
slowQueryLogPath() returns a taint-safe file (#5251)
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Jul 19, 2022
1 parent c1aa70e commit 992b3db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .tools/psalm/baseline-taint.xml
Expand Up @@ -10,9 +10,4 @@
<code>$data</code>
</TaintedCallable>
</file>
<file src="redaxo/src/core/pages/system.log.external.php">
<TaintedFile occurrences="1">
<code>$logFile</code>
</TaintedFile>
</file>
</files>
3 changes: 3 additions & 0 deletions redaxo/src/core/lib/sql/util.php
Expand Up @@ -7,6 +7,9 @@
*/
class rex_sql_util
{
/**
* @psalm-taint-escape file
*/
public static function slowQueryLogPath(): ?string
{
$db = rex_sql::factory();
Expand Down

0 comments on commit 992b3db

Please sign in to comment.