greenstone.org greenstone wiki greenstone trac planet greenstone

Changeset 16249

Show
Ignore:
Timestamp:
2008-06-30 14:32:45 (5 months ago)
Author:
ak19
Message:

In get_config_info, variable loc may not be initialised

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • greenstone3/trunk/web/WEB-INF/cgi/gsdlCGI.pm

    r16217 r16249  
    218218 
    219219    my ($loc) = ($config_content =~ m/^$infotype\s+((\".+\")|(\S+))\s*\n/m); 
    220     $loc =~ s/\"//g
     220    $loc =~ s/\"//g if defined $loc
    221221 
    222222    if ((!defined $loc) || ($loc =~ m/^\s*$/)) { 
  • greenstone3/trunk/web/WEB-INF/cgi/gsdlCGI4gs3.pm

    r16110 r16249  
    186186 
    187187    my ($loc) = ($config_content =~ m/^$infotype\s+((\".+\")|(\S+))\s*\n/m); 
    188     $loc =~ s/\"//g
     188    $loc =~ s/\"//g if defined $loc
    189189 
    190190    if ((!defined $loc) || ($loc =~ m/^\s*$/)) {