Ticket #593 (closed Bug: wontfix)
Form upload value set incorrectly.
| Reported by: | tterragcnoom | Owned by: | Shadowhand |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.1.2 |
| Component: | Modules:Forge | Version: | SVN HEAD |
| Keywords: | upload forge | Cc: | garrett@… |
Description
if validate is called more than once (and it's called on render, so it most probably is). The value of uploads is set incorrectly.
on line 94 of Form_Upload.php it should be: $filename = preg_replace('/\s+/', '_', $filename);
on line 102 of Form_Upload.php it should be: $filepath = $this->directory.'uploadfile-'.uniqid(time()).'-'.$filename;
I think :)
Change History
Note: See
TracTickets for help on using
tickets.
