mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Add extra backslashes and ungreedy modifier
This commit is contained in:
parent
36ae153995
commit
e4f67f6e2c
@ -254,7 +254,7 @@ class SSViewer implements Flushable
|
||||
$templates[] = ['type' => 'Includes', $template];
|
||||
|
||||
// If the class is "PageController" (PSR-2 compatibility) or "Page_Controller" (legacy), look for Page.ss
|
||||
if (preg_match('/^(?<name>.+[^\\])_?Controller$/i', $class, $matches)) {
|
||||
if (preg_match('/^(?<name>.+[^\\\\])_?Controller$/iU', $class, $matches)) {
|
||||
$templates[] = $matches['name'] . $suffix;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user