diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-11-07 12:31:42 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-11-07 12:32:31 -0800 |
commit | a7cdcc2e497eb862d36becb93a14fb32037260be (patch) | |
tree | f96ae0828442a44b72ce3ed7d56f9cb659d47eab /fs_selfservice | |
parent | e2d16c850d8857567023f10b8c57daf0570c6a8e (diff) |
fix 404 cities.cgi / self-service dynamic addresses
Diffstat (limited to 'fs_selfservice')
-rwxr-xr-x | fs_selfservice/FS-SelfService/cgi/misc/cities.cgi | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi b/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi new file mode 100755 index 000000000..07753f3b3 --- /dev/null +++ b/fs_selfservice/FS-SelfService/cgi/misc/cities.cgi @@ -0,0 +1,18 @@ +#!/usr/bin/perl -w + +use strict; +use CGI; +use FS::SelfService qw( mason_comp ); + +my $cgi = new CGI; + +my $rv = mason_comp( 'comp' => '/misc/cities.cgi', + 'query_string' => $cgi->query_string, #pass CGI params... + ); + +#hmm. +my $output = $rv->{'error'} || $rv->{'output'}; + +print $cgi->header( '-expires' => 'now' ). + $output; + |