Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df0a334e
Commit
df0a334e
authored
Feb 10, 2020
by
Toon Claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure valid mount_point is used by AvatarUploader
Default to 'avatar' if the mount_point from the database is nil.
parent
8267ded1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
app/uploaders/avatar_uploader.rb
app/uploaders/avatar_uploader.rb
+4
-0
changelogs/unreleased/tc-fix-38088.yml
changelogs/unreleased/tc-fix-38088.yml
+5
-0
No files found.
app/uploaders/avatar_uploader.rb
View file @
df0a334e
...
...
@@ -25,6 +25,10 @@ class AvatarUploader < GitlabUploader
self
.
class
.
absolute_path
(
upload
)
end
def
mounted_as
super
||
'avatar'
end
private
def
dynamic_segment
...
...
changelogs/unreleased/tc-fix-38088.yml
0 → 100644
View file @
df0a334e
---
title
:
Ensure a valid mount_point is used by the AvatarUploader
merge_request
:
24800
author
:
type
:
fixed
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment