Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2018-09-05 22:41:59 +0300
committerFelipe Artur <felipefac@gmail.com>2018-09-22 18:15:53 +0300
commit1fcc7f9ba23a5ca02773e080ccb66f37435150ff (patch)
tree7da14469edc854dd004f38ba6a31ba89a689663e /app/views/errors
parent7dd8d37984efb93c58f0f56fe7394ff5d90fbe11 (diff)
Render 412 for invalid UTF-8 parameters
Renders 412 error page when invalid UTF-8 is passed as parameters in controllers.
Diffstat (limited to 'app/views/errors')
-rw-r--r--app/views/errors/precondition_failed.html.haml8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/errors/precondition_failed.html.haml b/app/views/errors/precondition_failed.html.haml
new file mode 100644
index 00000000000..aa3869f33a9
--- /dev/null
+++ b/app/views/errors/precondition_failed.html.haml
@@ -0,0 +1,8 @@
+- content_for(:title, 'Encoding Error')
+%img{ :alt => "GitLab Logo", :src => image_path('logo.svg') }
+ %h1
+ 412
+.container
+ %h3 Precondition failed
+ %hr
+ %p Page can't be loaded because of invalid parameters.