From 387d30da764b152a9bb40ac6db7d9ce5282aa7a3 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 17 Aug 2010 22:32:47 -0700 Subject: use HTTP_HOST instead of SERVER_NAME so that we're sending requests back to the same canonical domain that we came from. Else Flash makes crossdomain.xml requests, fails, and falls over. Fixes ticket #1298. --- modules/organize/controllers/organize.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/organize/controllers/organize.php b/modules/organize/controllers/organize.php index 3005eb67..7b2ba8ef 100644 --- a/modules/organize/controllers/organize.php +++ b/modules/organize/controllers/organize.php @@ -38,7 +38,7 @@ class Organize_Controller extends Controller { $v = new View("organize_dialog.html"); $v->album = $album; - $v->domain = $input->server("SERVER_NAME"); + $v->domain = $input->server("HTTP_HOST"); $v->access_key = rest::access_key(); $v->file_filter = addslashes($file_filter); $v->sort_order = addslashes(json_encode($sort_order)); -- cgit v1.2.3