Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Need to check the path instead of the host for the demo name.
  • Loading branch information
perlDreamer committed Feb 17, 2012
1 parent 38fe8e0 commit 219c523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wre/lib/WRE/WebguiDemo.pm
Expand Up @@ -30,7 +30,7 @@ sub call {
my $config = WRE::Config->new;
$self->wre_config($config);
my $r = Plack::Request->new($env);
my ($id) = $r->uri->host =~ m/^\/(demo[0-9\_]+).*$/;
my ($id) = $r->uri->path =~ m/^\/(demo[0-9\_]+).*$/;
my $webgui_config = $config->getWebguiRoot("/etc/".$id.".conf");
my $response;
if (-e $webgui_config) {
Expand Down

0 comments on commit 219c523

Please sign in to comment.