escap & to &

This commit is contained in:
aptx4869 2013-03-17 08:57:39 +08:00
parent 9aae5fa5fa
commit c9e096f77a
1 changed files with 3 additions and 3 deletions

View File

@ -79,9 +79,9 @@ module Rack
src = livereload_local_uri.dup.gsub('localhost', host_to_use) + '?' src = livereload_local_uri.dup.gsub('localhost', host_to_use) + '?'
end end
src << "&mindelay=#{@options[:min_delay]}" if @options[:min_delay] src << "&amp;mindelay=#{@options[:min_delay]}" if @options[:min_delay]
src << "&maxdelay=#{@options[:max_delay]}" if @options[:max_delay] src << "&amp;maxdelay=#{@options[:max_delay]}" if @options[:max_delay]
src << "&port=#{@options[:port]}" if @options[:port] src << "&amp;port=#{@options[:port]}" if @options[:port]
template = ERB.new(::File.read(::File.expand_path('../../../skel/livereload.html.erb', __FILE__))) template = ERB.new(::File.read(::File.expand_path('../../../skel/livereload.html.erb', __FILE__)))