Skip to content

Commit

Permalink
BUGFIX: Eescape / in RegExp.
Browse files Browse the repository at this point in the history
  • Loading branch information
beerbohmdo committed Feb 27, 2012
1 parent 8c075da commit 2457c4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/Convert.php
Expand Up @@ -308,7 +308,7 @@ static function html2raw($data, $preserveLinks = false, $wordWrap = 60, $config

$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
Expand Down
2 changes: 1 addition & 1 deletion filesystem/File.php
Expand Up @@ -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);
Expand Down

0 comments on commit 2457c4f

Please sign in to comment.