mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 18:30:26 -06:00
allow dots in hostname
This commit is contained in:
parent
0c86d9ed9e
commit
69c36cf082
@ -212,7 +212,8 @@ Discourse::Application.routes.draw do
|
|||||||
delete "users/:username" => "users#destroy", constraints: {username: USERNAME_ROUTE_FORMAT}
|
delete "users/:username" => "users#destroy", constraints: {username: USERNAME_ROUTE_FORMAT}
|
||||||
|
|
||||||
post "user_avatar/:username/refresh_gravatar" => "user_avatars#refresh_gravatar"
|
post "user_avatar/:username/refresh_gravatar" => "user_avatars#refresh_gravatar"
|
||||||
get "user_avatar/:hostname/:username/:size/:version.png" => "user_avatars#show", format: false
|
get "user_avatar/:hostname/:username/:size/:version.png" => "user_avatars#show",
|
||||||
|
format: false, constraints: {hostname: /[\w\.]+/}
|
||||||
|
|
||||||
|
|
||||||
get "uploads/:site/:id/:sha.:extension" => "uploads#show", constraints: {site: /\w+/, id: /\d+/, sha: /[a-z0-9]{15,16}/i, extension: /\w{2,}/}
|
get "uploads/:site/:id/:sha.:extension" => "uploads#show", constraints: {site: /\w+/, id: /\d+/, sha: /[a-z0-9]{15,16}/i, extension: /\w{2,}/}
|
||||||
|
Loading…
Reference in New Issue
Block a user