Skip to content

Commit

Permalink
Changed depreciated function ereg_replace() to preg_replace and adjus…
Browse files Browse the repository at this point in the history
…t its parameter accordingly.
  • Loading branch information
rasseljandavid committed Jul 26, 2011
1 parent 49c7f9c commit bd2a086
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2674,7 +2674,7 @@ function process($server_path = null) {
}
if ($this->file_safe_name) { // formats the name
$this->file_dst_name_body = str_replace(array(' ', '-'), array('_','_'), $this->file_dst_name_body) ;
$this->file_dst_name_body = ereg_replace('[^A-Za-z0-9_]', '', $this->file_dst_name_body) ;
$this->file_dst_name_body = preg_replace('/[^A-Za-z0-9_]/', '', $this->file_dst_name_body) ;
$this->log .= '- file name safe format<br />';
}

Expand Down

0 comments on commit bd2a086

Please sign in to comment.