translate backslashes into forward slashes, fixes dirname() issue on windows

This commit is contained in:
John Bintz 2009-12-03 18:40:21 -05:00
parent 66f5083e3b
commit ab3af9244a
2 changed files with 3 additions and 1 deletions

View File

@ -60,6 +60,7 @@ class ComicPressMediaHandling {
function _resolve_regex_path($input) {
$input = str_replace('\.', '.', $input);
$input = str_replace('\\', '/', $input);
return $input;
}

View File

@ -144,7 +144,8 @@ class ComicPressMediaHandlingTest extends PHPUnit_Framework_TestCase {
function providerTestResolveRegexPath() {
return array(
array('test', 'test'),
array('te\.st', 'te.st')
array('te\.st', 'te.st'),
array('te\st', 'te/st'),
);
}