Skip to content

Commit

Permalink
SCRIPT_NAME has to start with a slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed Feb 22, 2012
1 parent 09dac7f commit 08e4ffe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wre/lib/WRE/WebguiDemo.pm
Expand Up @@ -45,7 +45,7 @@ sub call {
$path =~ s/\Q$id\E//;

$env->{PATH_INFO} = $path;
$env->{SCRIPT_NAME} .= $id;
$env->{SCRIPT_NAME} .= '/'.$id;
return $self->response_cb($app->($env), sub {
$env->{PATH_INFO} = $orig_path_info;
$env->{SCRIPT_NAME} = $orig_script_name;
Expand Down

0 comments on commit 08e4ffe

Please sign in to comment.