fix error for chinese url join
This commit is contained in:
parent
d3a027bb1f
commit
eddb6f0d53
|
@ -234,8 +234,8 @@ class SiteFeedAnnc
|
||||||
tmp["source-site-title"] = self.channel_title(locale)
|
tmp["source-site-title"] = self.channel_title(locale)
|
||||||
|
|
||||||
|
|
||||||
if !tmp["link_to_show"].blank?
|
if !tmp["link_to_show"].blank? && tmp["link_to_show"].start_with?("/")
|
||||||
tmp["link_to_show"] = URI.join(tmp["source_url"],URI.encode(tmp["link_to_show"])).to_s
|
tmp["link_to_show"] = "#{tmp["source_url"]}#{tmp["link_to_show"])}"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue