Yes, () in uploaded files too.
[pr0n] / perl / Sesse / pr0n / WebDAV.pm
index fe599303220f919f2a632c427dcab4a0a7c5d2ee..9d579496c40fe922c3175a6daa1cf8f5b7f5be42 100644 (file)
@@ -247,7 +247,7 @@ EOF
 EOF
        
                        return Apache2::Const::OK;
 EOF
        
                        return Apache2::Const::OK;
-               } elsif ($r->uri =~ m#^/webdav/upload/([a-zA-Z0-9-]+)/([a-zA-Z0-9._-]+)$#) {
+               } elsif ($r->uri =~ m#^/webdav/upload/([a-zA-Z0-9-]+)/([a-zA-Z0-9._()-]+)$#) {
                        # stat a single file
                        my ($event, $filename) = ($1, $2);
                        my ($fname, $size, $mtime);
                        # stat a single file
                        my ($event, $filename) = ($1, $2);
                        my ($fname, $size, $mtime);