diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2011-04-18 21:38:10 +0200 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2011-04-18 21:38:10 +0200 |
commit | cb4707054f55afba3d3289bab3c173762a2a063e (patch) | |
tree | dc0e17bab56d7eec00732f8cf43273087523e017 | |
parent | 83c3d3c3fd0aceeda3f0f2bb2fe808b0bdb12b29 (diff) |
Avoid hardcoded and incorrect URL in import page.
-rwxr-xr-x | web/import.cgi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/web/import.cgi b/web/import.cgi index 371e70f7a..76ac61841 100755 --- a/web/import.cgi +++ b/web/import.cgi @@ -128,6 +128,7 @@ sub main { Page::do_fastcgi(\&main); sub docs { + my $base = mySociety::Config::get('BASE_URL'); print <<EOF; <p>You may inject problem reports into FixMyStreet programatically using this simple interface. Upon receipt, an email will be sent to the address given, @@ -139,7 +140,7 @@ the report has been successfully received, or if not, a list of errors, one per line each starting with <samp>ERROR:</samp>. <p>You may submit the following information by POST to this URL -(i.e. <samp>http://www.fixmystreet.com/import</samp> ):</p> +(i.e. <samp>$base/import</samp> ):</p> <dl> <dt>service <dd> |