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:30 -0800 |
| commit | 9be553c793b473f85bd4061faa6635adb21f2a08 (patch) | |
| tree | 65a79d82f31302d7ae51671353694d546ce8a9f6 /fs_selfservice/FS-SelfService | |
| parent | e6816187d01802db8abdf31bd6d0de55bd081021 (diff) | |
fix 404 cities.cgi / self-service dynamic addresses
Diffstat (limited to 'fs_selfservice/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; + |
