mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 09:42:36 +02:00
fix issue where unstripped title is displayed in browse
This commit is contained in:
parent
0bd8557620
commit
d559dc8b99
1 changed files with 8 additions and 4 deletions
|
@ -1260,10 +1260,14 @@ class Site < Sequel::Model
|
||||||
end
|
end
|
||||||
|
|
||||||
def title
|
def title
|
||||||
if values[:title].nil? || values[:title].empty?
|
begin
|
||||||
!domain.nil? && !domain.empty? ? domain : "#{username}.neocities.org"
|
if values[:title].blank? || values[:title].strip.empty?
|
||||||
else
|
!domain.nil? && !domain.empty? ? domain : host
|
||||||
values[:title]
|
else
|
||||||
|
values[:title]
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
host
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue