Skip to content

Commit

Permalink
Use addcslashes() for #3835 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Sep 7, 2019
1 parent 72098d8 commit cb87c26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Util/XdebugFilterScriptGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ private function getWhitelistItems(array $filterData): array

if (\is_string($path)) {
$files[] = \sprintf(
'%s%s',
$path,
\DIRECTORY_SEPARATOR
\addslashes('%s' . \DIRECTORY_SEPARATOR),
$path
);
}
}
Expand Down

0 comments on commit cb87c26

Please sign in to comment.