Skip to content

Commit

Permalink
file names in Perl are a mess, just do nothing for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 5, 2017
1 parent bc1ba83 commit b781241
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Changes
@@ -1,7 +1,6 @@

7.47 2017-10-05
- Added multipart content generator to Mojo::UserAgent::Transactor.
- Improved Mojolicious::Static with support for UTF-8 file names.
- Fixed a bug in Mojo::File where parts of a path could get accidentally
upgraded from bytes to characters.

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Static.pm
Expand Up @@ -43,7 +43,7 @@ sub file {
my ($self, $rel) = @_;

# Search all paths
my @parts = map { encode 'UTF-8', $_ } split '/', $rel;
my @parts = split '/', $rel;
for my $path (@{$self->paths}) {
next unless my $asset = _get_file(path($path, @parts)->to_string);
return $asset;
Expand Down

0 comments on commit b781241

Please sign in to comment.