<p></p>
<p><b>@gravitystorm</b> commented on this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2597#discussion_r412918711">app/models/trace.rb</a>:</p>
<pre style='color:#555'>> @@ -117,7 +117,7 @@ def trace_name
end
def mime_type
- filetype = `/usr/bin/file -Lbz #{trace_name}`.chomp
+ filetype = Open3.capture2("/usr/bin/file", "-Lbz", trace_name)[0].chomp
</pre>
<p>Me too! I'm not sure why I overlooked this.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2597#discussion_r412918711">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOH33YHC5HQQ5WUC2LRN3L4XANCNFSM4MOCURNQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLPWGO7HSE4J3UKJTKTRN3L4XA5CNFSM4MOCURN2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOC65MQEI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2597#discussion_r412918711",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2597#discussion_r412918711",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>