summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-02-18 07:20:50 +0000
committerBharat Mediratta <bharat@menalto.com>2009-02-18 07:20:50 +0000
commite24de87096674943d6f9f66392901469e95e8c86 (patch)
tree1c64e1a6282f1831779d6c260d6a80d263ce6250
parent87ad71c985e016b820b998844bf21c0d7c188bc1 (diff)
Urlencode the user agent, else it doesn't get passed through properly.
This fixes the uploader on FF/Linux (and probably other platforms).
-rw-r--r--core/controllers/simple_uploader.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/simple_uploader.php b/core/controllers/simple_uploader.php
index b9d3b188..f6231897 100644
--- a/core/controllers/simple_uploader.php
+++ b/core/controllers/simple_uploader.php
@@ -29,7 +29,7 @@ class Simple_Uploader_Controller extends Controller {
url::site("simple_uploader/add_photo/$item->id" .
"?csrf=" . access::csrf_token() .
"&g3sid=" . Session::instance()->id() .
- "&user_agent=" . Input::instance()->server("HTTP_USER_AGENT"))) .
+ "&user_agent=" . urlencode(Input::instance()->server("HTTP_USER_AGENT")))) .
"&title=" . urlencode(t("Add photos")) .
"&addLabel=" . urlencode(t("Choose photos to add...")) .
"&pendingText=" . urlencode(t("Pending")) .