lib/qless/server.rb in qless-0.10.5 vs lib/qless/server.rb in qless-0.11.0
- old
+ new
@@ -113,9 +113,10 @@
obj.to_json
end
# Make the id acceptable as an id / att in HTML
def sanitize_attr(attr)
+ return unless attr
attr.gsub(/[^a-zA-Z\:\_]/, '-')
end
# What are the top tags? Since it might go on, say, every
# page, then we should probably be caching it