summaryrefslogtreecommitdiff
path: root/fs_selfservice
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-11-07 12:31:42 -0800
committerIvan Kohler <ivan@freeside.biz>2015-11-07 12:32:31 -0800
commita7cdcc2e497eb862d36becb93a14fb32037260be (patch)
treef96ae0828442a44b72ce3ed7d56f9cb659d47eab /fs_selfservice
parente2d16c850d8857567023f10b8c57daf0570c6a8e (diff)
fix 404 cities.cgi / self-service dynamic addresses
Diffstat (limited to 'fs_selfservice')
-rwxr-xr-xfs_selfservice/FS-SelfService/cgi/misc/cities.cgi18
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;
+