Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit c02ba35

Browse files
committed
Throws correct exception
- changed to `ViewException\DomainException` before there was `Exception\DomainException` which does not exist
1 parent 91dfa26 commit c02ba35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NamespacedPathStackResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public function clearPaths()
143143
* @param string $name
144144
* @param null|RendererInterface $renderer
145145
* @return string
146-
* @throws Exception\DomainException
146+
* @throws ViewException\DomainException
147147
*/
148148
public function resolve($name, RendererInterface $renderer = null)
149149
{
@@ -157,7 +157,7 @@ public function resolve($name, RendererInterface $renderer = null)
157157
$this->lastLookupFailure = false;
158158

159159
if ($this->isLfiProtectionOn() && preg_match('#\.\.[\\\/]#', $template)) {
160-
throw new Exception\DomainException(
160+
throw new ViewException\DomainException(
161161
'Requested scripts may not include parent directory traversal ("../", "..\\" notation)'
162162
);
163163
}

0 commit comments

Comments
 (0)