Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-11-02 16:29:39 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-11-02 16:29:39 (GMT)
commit2b5596554c8523615481946e1dcf7a0f1bd668d0 (patch)
tree7c05c6b346688407e5dada01b05dc4741d4f638e
parent1445785b74e5498f82dc966b07c08ae8cdad8315 (diff)
Strip the new lines in suggested filename
-rw-r--r--NEWS2
-rw-r--r--src/olpc/datastore/backingstore.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0096175..aab6185 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+* #4234 Fix copying a download to an usb stick. (marco)
+
Snapshot fa80f025af
* #4083: Remove the active loop and initialize threads. (tomeu)
diff --git a/src/olpc/datastore/backingstore.py b/src/olpc/datastore/backingstore.py
index d37c553..e0e420b 100644
--- a/src/olpc/datastore/backingstore.py
+++ b/src/olpc/datastore/backingstore.py
@@ -744,6 +744,7 @@ class InplaceFileBackingStore(FileBackingStore):
def _get_unique_filename(self, suggested_filename):
filename = suggested_filename.replace('/', '_')
filename = filename.replace(':', '_')
+ filename = filename.replace('\n', '_')
# FAT limit is 255, leave some space for uniqueness
max_len = 250