--- Apache/Gallery.pm Sat Sep 11 17:53:05 2004 +++ new/Gallery.pm Wed Sep 15 10:51:20 2004 @@ -96,9 +96,9 @@ # Handle selected images if ($cgi->param('selection')) { my @selected = $cgi->param('selection'); - my $content = "@selected"; + my $content = join "
\n",@selected; $r->content_type('text/html'); - $r->headers_out->{'Content-Length'} = length(${$content}); + $r->headers_out->{'Content-Length'} = length($content); if (!$::MP2) { $r->send_http_header; @@ -204,7 +204,7 @@ $tpl_vars{MENU} = generate_menu($r); $tpl_vars{FORM_BEGIN} = $select_mode?'
':''; - $tpl_vars{FORM_END} = $select_mode?'
':''; + $tpl_vars{FORM_END} = $select_mode?'':''; # Read, sort, and filter files my @files = grep { !/^\./ && -f "$filename/$_" } readdir (DIR); @@ -596,9 +596,15 @@ $tpl_vars{NEXT} = fill_in_file($tpl_vars{navpicture}, HASH => \%nav_vars ); + $tpl_vars{NEXTURL} = uri_escape($nextpicture, $escape_rule); } else { $tpl_vars{NEXT} = " "; + $tpl_vars{NEXTURL} = '#'; } } }