X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b78d25a3a8f0f059eb0f7104b8861c50e685e51e..fe4865c5a9876f1b9a20eb2b5b2f164a6965f543:/app/views/diary_entry/new.rhtml diff --git a/app/views/diary_entry/new.rhtml b/app/views/diary_entry/new.rhtml index 8daf769c4..d93e3e023 100644 --- a/app/views/diary_entry/new.rhtml +++ b/app/views/diary_entry/new.rhtml @@ -8,12 +8,12 @@ Body - <%= f.text_area :body, :cols => 80, :rows => 10 %> + <%= f.text_area :body, :cols => 80 %> Location -

- Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude <%= f.text_field :longitude, :size => 20, :id => "longitude" %> + + Latitude: <%= f.text_field :latitude, :size => 20, :id => "latitude" %> Longitude: <%= f.text_field :longitude, :size => 20, :id => "longitude" %> use map @@ -23,13 +23,13 @@ <% end %> <% if @user.home_lat.nil? or @user.home_lon.nil? %> - <% lon = params['lon'] || '-0.1' %> - <% lat = params['lat'] || '51.5' %> - <% zoom = params['zoom'] || '4' %> + <% lon = h(params['lon']) || '-0.1' %> + <% lat = h(params['lat']) || '51.5' %> + <% zoom = h(params['zoom']) || '4' %> <% else %> - <% lon = @user.home_lon %> - <% lat = @user.home_lat %> - <% zoom = '12' %> + <% lon = @user.home_lon %> + <% lat = @user.home_lat %> + <% zoom = '12' %> <% end %> @@ -68,4 +68,4 @@ window.onload = init; // --> - \ No newline at end of file +