From 89b4c55989eb0a1d2263de3a4a78c179f458cfee Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Sep 2008 03:49:24 +0000 Subject: #64967 follow-up by drewish: Replace ereg with preg in file_scan_directory(). --- modules/simpletest/drupal_web_test_case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/simpletest/drupal_web_test_case.php') diff --git a/modules/simpletest/drupal_web_test_case.php b/modules/simpletest/drupal_web_test_case.php index 5bfba7c62..10f1e1390 100644 --- a/modules/simpletest/drupal_web_test_case.php +++ b/modules/simpletest/drupal_web_test_case.php @@ -467,7 +467,7 @@ class DrupalWebTestCase { if (in_array($type, array('binary', 'html', 'image', 'javascript', 'php', 'sql', 'text'))) { // Use original file directory instead of one created during setUp(). $path = $this->original_file_directory . '/simpletest'; - $files = file_scan_directory($path, $type . '\-.*'); + $files = file_scan_directory($path, '/' . $type . '\-.*/'); // If size is set then remove any files that are not of that size. if ($size !== NULL) { -- cgit v1.2.3