Skip to content

Commit

Permalink
Merge pull request #557 from RotherOSS/issue-#541-migration_pl_pl_redux
Browse files Browse the repository at this point in the history
Issue #541: fix broken regex for migration.pl
  • Loading branch information
bschmalhofer authored Oct 20, 2020
2 parents 6da4f69 + 3678a15 commit fa0d021
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Kernel/Modules/MigrateFromOTRS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -598,8 +598,9 @@ sub _Finish {
my $ParamObject = $Kernel::OM->Get('Kernel::System::Web::Request');
my $ConfigObject = $Kernel::OM->Get('Kernel::Config');

# index.pl is appended in the template
my $OTOBOHandle = $ParamObject->ScriptName();
$OTOBOHandle =~ s/\/(.*)\/migration.pl\.pl/$1/;
$OTOBOHandle =~ s/\/(.*)\/migration\.pl/$1/;

# Under Docker the scheme is correctly recognised as there are only two relevant cases:
# a) HTTP should actually be used
Expand Down

0 comments on commit fa0d021

Please sign in to comment.