summaryrefslogtreecommitdiff
path: root/config/routes
diff options
context:
space:
mode:
authorJesse Hall <jessehall3@gmail.com>2019-09-10 12:28:18 +0000
committerNick Thomas <nick@gitlab.com>2019-09-10 12:28:18 +0000
commitd17f89f307baf93dc4678d67d8ef9a5a03e5fd02 (patch)
tree2585db995d69ff147991d6102f4b8315efd2cdcf /config/routes
parent5975f55c555330423aab49e7e0d2da2049a39200 (diff)
downloadgitlab-ce-d17f89f307baf93dc4678d67d8ef9a5a03e5fd02.tar.gz
Start of fix for #21859, allow users to open files with newlines in the filenames.
Diffstat (limited to 'config/routes')
-rw-r--r--config/routes/repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes/repository.rb b/config/routes/repository.rb
index b89e1c7f9af..093b86f3259 100644
--- a/config/routes/repository.rb
+++ b/config/routes/repository.rb
@@ -65,7 +65,7 @@ scope format: false do
resources :protected_tags, only: [:index, :show, :create, :update, :destroy]
end
- scope constraints: { id: /.+/ } do
+ scope constraints: { id: /[^\0]+/ } do
scope controller: :blob do
get '/new/*id', action: :new, as: :new_blob
post '/create/*id', action: :create, as: :create_blob