Skip to content
Permalink
Browse files

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 219c523ef7c554c9930dd7a3130390fa656c4e62
Showing with 1 addition and 1 deletion.
  1. +1 −1 wre/lib/WRE/WebguiDemo.pm
@@ -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) {

0 comments on commit 219c523

Please sign in to comment.
You can’t perform that action at this time.