From 29fbefec2d08f8030848f09d249fc269ea877359 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 9 Jul 2007 07:45:26 +0000 Subject: [PATCH] =?utf8?q?Pfadkomponenten=20entfernen,=20bevor=20exec=20au?= =?utf8?q?fgerufen=20wird,=20damit=20nicht=20beliebige=20Perlscripte=20aus?= =?utf8?q?gef=C3=BChrt=20werden=20k=C3=B6nnen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Form.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/Form.pm b/SL/Form.pm index 6e60b76c4..d510710b7 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -690,7 +690,8 @@ sub redirect { if ($self->{callback}) { - ($script, $argv) = split(/\?/, $self->{callback}); + ($script, $argv) = split(/\?/, $self->{callback}, 2); + $script =~ s|.*/||; exec("perl", "$script", $argv); } else { -- 2.20.1