summaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorjhagg <jhagg@web>2010-06-16 13:40:29 +0000
committerJoey Hess <joey@finch.kitenet.net>2010-06-16 13:40:29 +0000
commit96c7e31c34b10e343afb3f17eb1ca7c34aaa4123 (patch)
tree7e1118601cae1b7383d833a9539789035f078185 /doc/bugs
parentda2be6e85cc6d515e173597f88712386aa2a27f4 (diff)
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn b/doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn
new file mode 100644
index 000000000..de57a1441
--- /dev/null
+++ b/doc/bugs/attachment_upload_does_not_work_for_windows_clients.mdwn
@@ -0,0 +1,19 @@
+It seems as if windows clients (IE) submit filenames with backslash as directory separator.
+(no surprise :-).
+
+But the attachment plugin translates these backslashes to underscore, making the
+whole path a filename.
+
+This little hack fixed the backslash problem, although I wonder if that
+really is the problem?
+(Everything works perfectly from linux clients of course. :-)
+
+ sub basename ($) {
+ my $file=shift;
+
+ $file=~s!.*/+!!;
+ $file=~s!.*\\+!!;
+ return $file;
+ }
+
+Should probably be `$file=~s!.*[/\\]+!!` :-)