diff options
| author | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 23:15:28 -0700 |
|---|---|---|
| committer | Andy Staudacher <andy.st@gmail.com> | 2009-08-29 23:15:28 -0700 |
| commit | d3b03026907b63e90d90cda1b9f777e0fbfe29b7 (patch) | |
| tree | 436f5db744a621b0a3d3738b7bdfe31e4f820538 /modules/gallery/views/simple_uploader.html.php | |
| parent | b9bd1681a3b1496c0f1bbe5e6254ab4fd0c9fe30 (diff) | |
Minor cleanup
Diffstat (limited to 'modules/gallery/views/simple_uploader.html.php')
| -rw-r--r-- | modules/gallery/views/simple_uploader.html.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/gallery/views/simple_uploader.html.php b/modules/gallery/views/simple_uploader.html.php index b136972a..b2d01ea7 100644 --- a/modules/gallery/views/simple_uploader.html.php +++ b/modules/gallery/views/simple_uploader.html.php @@ -82,13 +82,13 @@ <script type="text/javascript"> var swfu = new SWFUpload({ - flash_url: "<?= html::escape_for_js(url::file("lib/swfupload/swfupload.swf")) ?>", - upload_url: "<?= html::escape_for_js(url::site("simple_uploader/add_photo/$item->id")) ?>", + flash_url: "<?= html::clean_js(url::file("lib/swfupload/swfupload.swf")) ?>", + upload_url: "<?= html::clean_js(url::site("simple_uploader/add_photo/$item->id")) ?>", post_params: <?= json_encode(array( "g3sid" => Session::instance()->id(), "user_agent" => Input::instance()->server("HTTP_USER_AGENT"), "csrf" => $csrf)) ?>, - file_size_limit: "<?= html::escape_for_js(ini_get("upload_max_filesize") ? num::convert_to_bytes(ini_get("upload_max_filesize"))."B" : "100MB")) ?>", + file_size_limit: "<?= html::clean_js(ini_get("upload_max_filesize") ? num::convert_to_bytes(ini_get("upload_max_filesize"))."B" : "100MB")) ?>", file_types: "*.gif;*.jpg;*.jpeg;*.png;*.flv;*.mp4;*.GIF;*.JPG;*.JPEG;*.PNG;*.FLV;*.MP4", file_types_description: "<?= t("Photos and Movies")->for_js() ?>", file_upload_limit: 1000, @@ -97,7 +97,7 @@ debug: false, // Button settings - button_image_url: "<?= html::escape_for_js(url::file("themes/default/images/select-photos-backg.png")) ?>", + button_image_url: "<?= html::clean_js(url::file("themes/default/images/select-photos-backg.png")) ?>", button_width: "202", button_height: "45", button_placeholder_id: "gChooseFilesButtonPlaceholder", |
