mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-08-27 13:06:04 +02:00
Apply preg_quote to each generator name and to $this->Name so that their use in a regular expression will not cause run-time errors. Provided fixture and test.
19 lines
594 B
YAML
19 lines
594 B
YAML
Folder:
|
|
folder1:
|
|
Filename: assets/ImageTest
|
|
Image:
|
|
imageWithTitle:
|
|
Title: This is a image Title
|
|
Filename: assets/ImageTest/test_image.png
|
|
Parent: =>Folder.folder1
|
|
imageWithoutTitle:
|
|
Filename: assets/ImageTest/test_image.png
|
|
Parent: =>Folder.folder1
|
|
imageWithoutTitleContainingDots:
|
|
Filename: assets/ImageTest/test.image.with.dots.png
|
|
Parent: =>Folder.folder1
|
|
imageWithMetacharacters:
|
|
Title: This is a/an image Title
|
|
Filename: assets/ImageTest/test_image*).png
|
|
Parent: =>Folder.folder1
|