You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that the PathStackResolver's resolve function returns if the first path doesn't contain the requested resource. This has been giving me problems all morning. I propose making the following change:
public function resolve($name)
{
if ($this->isLfiProtectionOn() && preg_match('#\.\.[\\\/]#', $name)) {
return null;
}
foreach ($this->getPaths() as $path) {
$asset = $this->resolveFile($path . $name);
if (!$asset) {
//return null;
continue;
}
$asset->mimetype = $this->getMimeResolver()->getMimeType($name);
return $asset;
}
return null;
}
PS thanks a lot for all your work wshafer!
The text was updated successfully, but these errors were encountered:
It seems that the PathStackResolver's resolve function returns if the first path doesn't contain the requested resource. This has been giving me problems all morning. I propose making the following change:
PS thanks a lot for all your work wshafer!
The text was updated successfully, but these errors were encountered: