Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Escape ampersands in the generated URL #28

Merged
merged 1 commit into from

2 participants

@aptx4869

I am useing livereload for web developing. And my HTML validator keep showing me a message that we should escape the ampersand on all my pages...

@johnbintz johnbintz merged commit c1415c3 into from
@johnbintz
Owner

Works for me! Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 17, 2013
  1. @aptx4869

    escap & to &

    aptx4869 authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/rack/livereload.rb
View
6 lib/rack/livereload.rb
@@ -79,9 +79,9 @@ def _call(env)
src = livereload_local_uri.dup.gsub('localhost', host_to_use) + '?'
end
- src << "&mindelay=#{@options[:min_delay]}" if @options[:min_delay]
- src << "&maxdelay=#{@options[:max_delay]}" if @options[:max_delay]
- src << "&port=#{@options[:port]}" if @options[:port]
+ src << "&amp;mindelay=#{@options[:min_delay]}" if @options[:min_delay]
+ src << "&amp;maxdelay=#{@options[:max_delay]}" if @options[:max_delay]
+ src << "&amp;port=#{@options[:port]}" if @options[:port]
template = ERB.new(::File.read(::File.expand_path('../../../skel/livereload.html.erb', __FILE__)))
Something went wrong with that request. Please try again.