-
-
Notifications
You must be signed in to change notification settings - Fork 452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added checker for _convertPath if the path is file #500
Conversation
Hey @personnage, Good catch, I am thinking if we could get away with checking if the path ends with |
@stayallive, I think you're right. |
@personnage there is one more thing I noticed, this is also used to strip the prefix from an path in the stacktrace. This could mean a trace going through your excluded file leaves the filename empty. We might need to filter out files ending in .php before they are being sent through the public function setExcludedAppPaths($value)
{
if ($value) {
$excluded_app_paths = array();
foreach ((array)$value as $path) {
$excluded_app_paths[] = substr($path, -4) !== '.php' ? $this->_convertPath($path) : $path;
}
} else {
$excluded_app_paths = null;
}
$this->excluded_app_paths = $excluded_app_paths;
return $this;
} This way the other usages of (why no closure: It is not possible to use $this from anonymous function before PHP 5.4.0, savages) |
@stayallive, done |
@stayallive And I thank you for that.
Then I look forward to it. |
Hello!
I want exclude from stacktrace a list files, example
But if missing check on file,
_convertPath
added a slash in the end.