Ticket #787: ereg_replace_remove.diff
File ereg_replace_remove.diff, 989 bytes (added by , 16 years ago) |
---|
-
html/user/team_edit_form.php
27 27 if (!$team) error_page("no such team"); 28 28 require_admin($user, $team); 29 29 30 $team_name = ereg_replace("\"", "'", $team->name);30 $team_name = strtr($team->name, '"', "'"); 31 31 page_head("Edit ".$team_name); 32 32 team_edit_form($team, "Update team info", "team_edit_action.php"); 33 33 page_tail(); -
html/inc/util.inc
418 418 // Generates a legal filename from a parameter string. 419 419 420 420 function get_legal_filename($name) { 421 $name = ereg_replace(',', '', $name); 422 return ereg_replace(' ', '_', $name); 421 return strtr($name, array(','=>'', ' '=>'_')); 423 422 } 424 423 425 424 // Returns a string containing as many words