summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-01-25 15:23:52 +0100
committerFlorian Pritz <bluewind@xinu.at>2012-01-25 15:23:56 +0100
commit798a4824a2aa099de9eb05454ebb62b1522bee65 (patch)
tree0f5f3850981704fc9732b55528f43ec6317d1d0d
parentb433bcc5da665c171b2ac293892d3d19eef80e2f (diff)
strip base64 decoded file of special chars
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/controllers/file.php b/application/controllers/file.php
index 4bb336ad0..f578dd7c7 100644
--- a/application/controllers/file.php
+++ b/application/controllers/file.php
@@ -237,7 +237,7 @@ class File extends CI_Controller {
// work around a curl bug and allow the client to send the real filename base64 encoded
$filename = $this->input->post("filename");
if ($filename !== false) {
- $filename = base64_decode($filename, true);
+ $filename = trim(base64_decode($filename, true), "\r\n\0\t\x0B");
}
// fall back if base64_decode failed