1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-07 07:16:51 +02:00
This commit is contained in:
Ryan Cramer
2025-02-06 09:04:08 -05:00
parent 4a9b904b77
commit a959afc422

View File

@@ -72,6 +72,11 @@ class WireTempDir extends Wire {
if(!is_null($this->tempDirRoot)) throw new WireException("Temp dir has already been created");
if(empty($name)) $name = $this->createName();
if(is_object($name)) $name = wireClassName($name, false);
if($basePath && !$this->wire()->files->allowPath($basePath, true)) {
$this->log("Given base path $basePath is not within ProcessWire assets so has been replaced");
$basePath = '';
}
$basePath = $this->classRootPath(true, $basePath);
$this->classRoot = $basePath;