Changeset 712

Show
Ignore:
Timestamp:
08/07/02 17:48:47
Author:
miyagawa
Message:

0.02

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Apache-CustomKeywords/trunk/Changes

    r708 r712  
    11Revision history for Perl extension Apache::CustomKeywords 
     2 
     30.02  Wed Aug  7 17:48:25 JST 2002 
     4        - Now single word like "google" works 
     5        - Displays error message rather than 404 
    26 
    370.01  Tue Aug  6 21:35:37 2002 
  • Apache-CustomKeywords/trunk/README

    r708 r712  
    5151        file ("/etc/hosts" in Un*x, "Windows/Hosts" or 
    5252        "windows/system/drivers/etc/Hosts" in Win32) or local DNS so that 
    53         "auto.search.msn.com" points to the server this module is installed. 
     53        "auto.search.msn.com" points to the server where this module is 
     54        installed. 
    5455 
    5556NOTE 
  • Apache-CustomKeywords/trunk/lib/Apache/CustomKeywords.pm

    r708 r712  
    33use strict; 
    44use vars qw($VERSION); 
    5 $VERSION = 0.01
     5$VERSION = 0.02
    66 
    77use Apache::Constants qw(:response); 
     
    3636            return REDIRECT; 
    3737        } 
    38         return NOT_FOUND; 
     38        $r->send_http_header('text/html'); 
     39        $r->print(__PACKAGE__ . ": Can't parse tokens."); 
     40        return OK; 
    3941    } 
    4042} 
     
    4749 
    4850    # registerd command? 
    49     $query =~ s/^(\S+)\s+// or return; 
     51    $query =~ s/^(\S+)\s*// or return; 
    5052    my $engine = $keyword->{$1} or return; 
    5153    $engine =~ s/%s/$class->escape_it($query)/eg; 
     
    145147file (C</etc/hosts> in Un*x, C<Windows/Hosts> or 
    146148C<windows/system/drivers/etc/Hosts> in Win32) or local DNS so that 
    147 C<auto.search.msn.com> points to the server this module is installed. 
     149C<auto.search.msn.com> points to the server where this module is 
     150installed. 
    148151 
    149152=back