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.
This commit is contained in:
Bharat Mediratta
2010-08-17 22:32:47 -07:00
parent ff1d8aea2f
commit 387d30da76

View File

@@ -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));