Skip to content

Commit

Permalink
allow all characters except forward slash as file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
xini committed Jan 11, 2023
1 parent ba80f36 commit ab5ab7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Control/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ public static function join_links($arg = null)
// add trailing slash if enabled and url does not contain a file extension
if (static::config()->get('add_trailing_slash') === true
&& substr($result, -1) !== '/'
&& !preg_match('/^(.*)\.([A-Za-z][A-Za-z0-9]*)$/', $result)
&& !preg_match('/^(.*)\.([^\/]*)$/', $result)
) {
$result = rtrim($result, '/') . '/';
}
Expand Down

0 comments on commit ab5ab7d

Please sign in to comment.