バグ #1071 » 0001-PhotoMixin-Windows.patch
core/plugin/photo/model/photo.rb | ||
---|---|---|
21 | 21 |
when String |
22 | 22 |
if uri.start_with?('http') |
23 | 23 |
photos[uri.hash] ||= new(perma_link: uri) |
24 |
elsif uri.start_with?('/') |
|
24 |
elsif uri.start_with?('/') || uri.start_with?('A:','B:','C:','D:','E:','F:','G:','H:','I:','J:','K:','L:','M:','N:','O:','P:','Q:','R:','S:','T:','U:','V:','W:','X:','Y:','Z:')
|
|
25 | 25 |
uri = Retriever::URI.new(scheme: 'file', path: uri) |
26 | 26 |
photos[uri.hash] ||= new(perma_link: uri) |
27 | 27 |
end |