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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
1cd28600
Commit
1cd28600
authored
Jul 27, 2015
by
Hiroyuki Sato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the image file that contains non-ascii character is not displayed
parent
8be3d120
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
CHANGELOG
CHANGELOG
+1
-0
lib/gitlab/markdown/relative_link_filter.rb
lib/gitlab/markdown/relative_link_filter.rb
+3
-2
No files found.
CHANGELOG
View file @
1cd28600
Please view this file on the master branch, on stable branches it's out of date.
v 7.14.0 (unreleased)
- Fix the image file that contains non-ascii character is not displayed(Hiroyuki Sato)
- Fix URL used for refreshing notes if relative_url is present (Bartłomiej Święcki)
- Fix Error 500 when browsing projects with no HEAD (Stan Hu)
- Fix full screen mode for snippet comments (Daniel Gerhardt)
...
...
lib/gitlab/markdown/relative_link_filter.rb
View file @
1cd28600
...
...
@@ -98,9 +98,10 @@ module Gitlab
#
# Returns a String
def
path_type
(
path
)
if
repository
.
tree
(
current_sha
,
path
).
entries
.
any?
unescaped_path
=
Addressable
::
URI
.
unescape
(
path
)
if
repository
.
tree
(
current_sha
,
unescaped_path
).
entries
.
any?
'tree'
elsif
repository
.
blob_at
(
current_sha
,
path
).
try
(
:image?
)
elsif
repository
.
blob_at
(
current_sha
,
unescaped_
path
).
try
(
:image?
)
'raw'
else
'blob'
...
...
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