Skip to content

Commit

Permalink
MBS-3208, remove non-printable characters in Data::Utils::trim.
Browse files Browse the repository at this point in the history
  • Loading branch information
warpr committed Apr 4, 2012
1 parent 3e65f49 commit c129087
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/MusicBrainz/Server/Data/Utils.pm
Expand Up @@ -334,6 +334,9 @@ sub trim
# Compress whitespace
$t =~ s/\s+/ /g;

# Remove non-printable characters.
$t =~ s/[^[:print:]]//g;

return $t;
}

Expand Down

0 comments on commit c129087

Please sign in to comment.