Changeset 36091 for main


Ignore:
Timestamp:
2022-03-10T08:56:02+13:00 (2 years ago)
Author:
kjdon
Message:

check that servlet arg starts with /, and add one if it doesn't

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/GetOpt.java

    r32689 r36091  
    203203            }
    204204            else if (argument_name.equals(StaticStrings.SERVLET_ARGUMENT)) {
    205             servlet_path = argument_value;
     205            if (argument_value.startsWith(StaticStrings.URL_SEPARATOR_CHARACTER)) {
     206                servlet_path = argument_value;
     207            } else {
     208                servlet_path = StaticStrings.URL_SEPARATOR_CHARACTER + argument_value;
     209            }
    206210            }
    207211            // Specify a non-standard collect directory to use (for running one GLI in a network environment)
Note: See TracChangeset for help on using the changeset viewer.