Eschew questionable use of File.join
For constructing a URL, `File.join` is inappropriate.
This commit is contained in:
parent
d31a29e54d
commit
ac106488c7
|
@ -13,7 +13,7 @@ module Travis::Api::App::Responders
|
|||
lastBuildStatus="<%= STATUS[r.last_build.state.to_sym] || STATUS[:default] %>"
|
||||
lastBuildLabel="<%= r.last_build.try(:number) %>"
|
||||
lastBuildTime="<%= r.last_build.finished_at.try(:strftime, '%Y-%m-%dT%H:%M:%S.%L%z') %>"
|
||||
webUrl="<%= File.join("https://", Travis.config.client_domain, r.slug) %>" />
|
||||
webUrl="https://<%= Travis.config.client_domain %>/<%= r.slug %>"
|
||||
<% end %>
|
||||
</Projects>
|
||||
EOF
|
||||
|
|
Loading…
Reference in New Issue
Block a user