Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
schleuder-web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schleuder
schleuder-web
Commits
69218377
There was a problem fetching the pipeline summary.
Commit
69218377
authored
7 years ago
by
ng
Browse files
Options
Downloads
Patches
Plain Diff
fix
#79
- properly redirect if no data is submitted
parent
43d84300
No related branches found
No related tags found
1 merge request
!24
fix #79 - properly redirect if no data is submitted
Pipeline
#
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/controllers/keys_controller.rb
+2
-1
2 additions, 1 deletion
app/controllers/keys_controller.rb
with
2 additions
and
1 deletion
app/controllers/keys_controller.rb
+
2
−
1
View file @
69218377
...
...
@@ -22,7 +22,8 @@ class KeysController < ApplicationController
elsif
params
[
:keyfile
].
present?
input
=
params
[
:keyfile
].
read
else
redirect_to
:index
,
alert:
'No input found'
flash
[
:alert
]
=
'No input found'
return
redirect_to
action:
'index'
end
if
!
input
.
match
(
'BEGIN PGP'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment