? sites.repository ? profiles/atrus ? profiles/developer ? profiles/ermarian ? profiles/gandalf ? profiles/small_business ? profiles/zebra Index: includes/file.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/file.inc,v retrieving revision 1.127 diff -u -p -r1.127 file.inc --- includes/file.inc 5 Jul 2008 18:34:29 -0000 1.127 +++ includes/file.inc 25 Jul 2008 01:14:00 -0000 @@ -658,7 +658,7 @@ function file_validate_extensions($file, // Bypass validation for uid = 1. if ($user->uid != 1) { - $regex = '/\.(' . ereg_replace(' +', '|', preg_quote($extensions)) . ')$/i'; + $regex = '/\.(' . preg_replace('/ +/', '|', preg_quote($extensions)) . ')$/i'; if (!preg_match($regex, $file->filename)) { $errors[] = t('Only files with the following extensions are allowed: %files-allowed.', array('%files-allowed' => $extensions)); } Index: includes/unicode.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/unicode.inc,v retrieving revision 1.31 diff -u -p -r1.31 unicode.inc --- includes/unicode.inc 18 Jun 2008 03:36:23 -0000 1.31 +++ includes/unicode.inc 25 Jul 2008 01:14:00 -0000 @@ -135,7 +135,7 @@ function drupal_xml_parser_create(&$data } // Check for an encoding declaration in the XML prolog if no BOM was found. - if (!$bom && ereg('^<\?xml[^>]+encoding="([^"]+)"', $data, $match)) { + if (!$bom && preg_match('/^<\?xml[^>]+encoding="(.+?)"/', $data, $match)) { $encoding = $match[1]; } @@ -145,7 +145,7 @@ function drupal_xml_parser_create(&$data $out = drupal_convert_to_utf8($data, $encoding); if ($out !== FALSE) { $encoding = 'utf-8'; - $data = ereg_replace('^(<\?xml[^>]+encoding)="([^"]+)"', '\\1="utf-8"', $out); + $data = preg_replace('/^(<\?xml[^>]+encoding)="(.+?)"/', '\\1="utf-8"', $out); } else { watchdog('php', 'Could not convert XML encoding %s to UTF-8.', array('%s' => $encoding), WATCHDOG_WARNING); Index: modules/blogapi/blogapi.module =================================================================== RCS file: /cvs/drupal/drupal/modules/blogapi/blogapi.module,v retrieving revision 1.120 diff -u -p -r1.120 blogapi.module --- modules/blogapi/blogapi.module 23 Jul 2008 07:42:08 -0000 1.120 +++ modules/blogapi/blogapi.module 25 Jul 2008 01:14:00 -0000 @@ -552,9 +552,9 @@ function blogapi_validate_user($username * For the blogger API, extract the node title from the contents field. */ function blogapi_blogger_title(&$contents) { - if (eregi('([^<]*)', $contents, $title)) { + if (preg_match('/(.*?)<\/title>/i', $contents, $title)) { $title = strip_tags($title[0]); - $contents = ereg_replace('<title>[^<]*', '', $contents); + $contents = preg_replace('/.*?<\/title>/i', '', $contents); } else { list($title, $contents) = explode("\n", $contents, 2); Index: modules/filter/filter.module =================================================================== RCS file: /cvs/drupal/drupal/modules/filter/filter.module,v retrieving revision 1.217 diff -u -p -r1.217 filter.module --- modules/filter/filter.module 24 Jul 2008 16:25:17 -0000 1.217 +++ modules/filter/filter.module 25 Jul 2008 01:14:00 -0000 @@ -869,7 +869,7 @@ function _filter_autop($text) { if ($i % 2) { // Opening or closing tag? $open = ($chunk[1] != '/'); - list($tag) = split('[ >]', substr($chunk, 2 - $open), 2); + list($tag) = preg_split('/[ >]/', substr($chunk, 2 - $open), 2); if (!$ignore) { if ($open) { $ignore = TRUE; Index: modules/profile/profile.module =================================================================== RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v retrieving revision 1.243 diff -u -p -r1.243 profile.module --- modules/profile/profile.module 24 Jul 2008 16:25:18 -0000 1.243 +++ modules/profile/profile.module 25 Jul 2008 01:14:00 -0000 @@ -276,7 +276,7 @@ function profile_view_field($user, $fiel ); return strtr($format, $replace); case 'list': - $values = split("[,\n\r]", $value); + $values = preg_split("/[,\n\r]/", $value); $fields = array(); foreach ($values as $value) { if ($value = trim($value)) { @@ -387,7 +387,7 @@ function profile_form_profile($edit, $us break; case 'selection': $options = $field->required ? array() : array('--'); - $lines = split("[,\n\r]", $field->options); + $lines = preg_split("/[,\n\r]/", $field->options); foreach ($lines as $line) { if ($line = trim($line)) { $options[$line] = $line;