diff options
Diffstat (limited to 'lib/sisu/html_format.rb')
-rw-r--r-- | lib/sisu/html_format.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/html_format.rb b/lib/sisu/html_format.rb index b5726626..54edac82 100644 --- a/lib/sisu/html_format.rb +++ b/lib/sisu/html_format.rb @@ -883,7 +883,7 @@ WOK tags='' if defined? dob.tags \ and dob.tags.length > 0 # insert tags "hypertargets" - dob.tags.each do |t| + dob.tags.compact.each do |t| # .compact hides a problem, nil should not occur fix (upstream) t=t.gsub(/[^a-z0-9._-]/,'') #use for all html tags? consider limiting to strict? or implementing earlier tags=(t =~/^[0-9.]+$/) \ ? tags #check what can be sorted in ao |