merge_url(
{'path' => $viewer_url},
{
- 'query' => {'g' => 1},
+ 'query' => {
+ 'g' => 1,
+ 'b' => $text_mode
+ },
'fragment' => 'goto'
}
);
print $fh '<a href="'.$_goto_url.'">GOTO</a>'."\n";
print $fh ' <span style="float: right;">'."\n ";
if (
- ($text_mode == TEXT_MODE->{'normal'}) &&
- (!$goto)
+ ($text_mode == TEXT_MODE->{'normal'})
+ # && (!$goto)
){
if ($show_words) {
print $fh '<a href="'.$_words_url.'">'.$words_link_text.'</a> | ';
###PERL_PATH_SEPARATOR: PATH_SEPARATOR = /
###PERL_CGI_PATH: CGI_PATH = /bsta/
+###PERL_CGI_GOTO_PATH: CGI_GOTO_PATH = /bsta/g
###PERL_CGI_VIEWER_PATH: CGI_VIEWER_PATH = /bsta/v
###PERL_DATA_STATE_PATH: DATA_STATE_PATH = /botm/data/bsta/state
exit fail_content_type($method, $http{'content-type'});
}
}
+
+if (
+ (defined $cgi{'f'}) &&
+ ($cgi{'f'} eq '') &&
+ ($cgi{'g'} ne '')
+) { # GOTO with no value
+ exit redirect($method, CGI_GOTO_PATH(), HTTP_STATUS->{'see_other'});
+}
+
+
$no_cgi = (scalar (keys %cgi) == 0);
$IP = get_remote_addr();