Changeset 232
- Timestamp:
- 09/03/03 08:38:23 (5 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 modified
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (1 diff)
-
lib/OpenGuides/Template.pm (modified) (2 diffs)
-
t/62_bug_os_coords.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Changes
r231 r232 1 1 0.24 2 2 Fix to recent changes so minor changes don't mask major ones. 3 Fix supersearch.cgi to use a template instead of CGI.pm to avoid3 Fixed supersearch.cgi to use a template instead of CGI.pm to avoid 4 4 weird errors, also turned it into a module and added tests. 5 Strip whitespace from OS co-ords before storing in database. 5 6 6 7 0.23 4 August 2003 -
trunk/MANIFEST
r231 r232 59 59 t/51_diff.t 60 60 t/61_bug_textareas.t 61 t/62_bug_os_coords.t 61 62 t/templates/15_test.tt 62 63 wiki.cgi -
trunk/lib/OpenGuides/Template.pm
r230 r232 3 3 use strict; 4 4 use vars qw( $VERSION ); 5 $VERSION = '0.1 1';5 $VERSION = '0.12'; 6 6 7 7 use Carp qw( croak ); … … 259 259 my $os_x = $q->param("os_x"); 260 260 my $os_y = $q->param("os_y"); 261 # Trim whitespace - trailing whitespace buggers up the integerification 262 # by postgres and it's an easy mistake to make when typing into a form. 263 $os_x =~ s/\s+//; 264 $os_y =~ s/\s+//; 261 265 # Work out latitude and longitude for the preview display. 262 266 if ($os_x and $os_y) {
