Skip to content

Commit 219c523

Browse files
committedFeb 17, 2012
Need to check the path instead of the host for the demo name.
1 parent 38fe8e0 commit 219c523

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎wre/lib/WRE/WebguiDemo.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sub call {
3030
my $config = WRE::Config->new;
3131
$self->wre_config($config);
3232
my $r = Plack::Request->new($env);
33-
my ($id) = $r->uri->host =~ m/^\/(demo[0-9\_]+).*$/;
33+
my ($id) = $r->uri->path =~ m/^\/(demo[0-9\_]+).*$/;
3434
my $webgui_config = $config->getWebguiRoot("/etc/".$id.".conf");
3535
my $response;
3636
if (-e $webgui_config) {

0 commit comments

Comments
 (0)
Please sign in to comment.