mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Eescape / in RegExp.
This commit is contained in:
parent
8c075dab9c
commit
2457c4f0bc
@ -308,7 +308,7 @@ class Convert {
|
||||
|
||||
$data = preg_replace("/<[Bb][Rr]([^A-Za-z0-9>][^>]*)?> */", "\n", $data);
|
||||
$data = preg_replace("/<[Tt][Rr]([^A-Za-z0-9>][^>]*)?> */", "\n", $data);
|
||||
$data = preg_replace("/</[Tt][Dd]([^A-Za-z0-9>][^>]*)?> */", " ", $data);
|
||||
$data = preg_replace("/<\/[Tt][Dd]([^A-Za-z0-9>][^>]*)?> */", " ", $data);
|
||||
$data = preg_replace('/<\/p>/i', "\n\n", $data );
|
||||
|
||||
// Replace HTML entities
|
||||
|
@ -144,7 +144,7 @@ class File extends DataObject {
|
||||
*/
|
||||
static function find($filename) {
|
||||
// Get the base file if $filename points to a resampled file
|
||||
$filename = preg_replace('/_resampled/[^-]+-/', '', $filename);
|
||||
$filename = preg_replace('/_resampled\/[^-]+-/', '', $filename);
|
||||
|
||||
// Split to folders and the actual filename, and traverse the structure.
|
||||
$parts = explode("/", $filename);
|
||||
|
Loading…
x
Reference in New Issue
Block a user