|
PKP Bugzilla – Full Text Bug Listing |
| Summary: | Cover image upload does not check file type | ||
|---|---|---|---|
| Product: | OJS | Reporter: | Alec Smecher <alec> |
| Component: | General | Assignee: | PKP Support <pkp-support> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ales.kladnik, colin.prince, jfitz049, plotti |
| Priority: | P3 | ||
| Version: | 2.3.6 | ||
| Hardware: | All | ||
| OS: | All | ||
| Version Reported In: | 2.3.5 | Also Affects: | OJS 2.2.5, OJS 2.3.2, OJS 2.3.3, OJS 2.3.4, OJS 2.3.5 |
| Attachments: |
Patch against OJS 2.3.0, 2.3.1, 2.3.2
Patch against OJS 2.3.3, 2.3.4, 2.3.5 Patch against OJS 2.2.1, 2.2.2, 2.2.3, 2.2.4 |
||
|
Description
Alec Smecher
2011-06-16 09:26:56 PDT
Created attachment 3565 [details]
Patch against OJS 2.3.0, 2.3.1, 2.3.2
Created attachment 3566 [details]
Patch against OJS 2.3.3, 2.3.4, 2.3.5
Created attachment 3567 [details]
Patch against OJS 2.2.1, 2.2.2, 2.2.3, 2.2.4
Could you also allow .pdf files as cover images? We're planning on using pdf files for cover images for our journal. Thanks. jayfitzsimmons -- probably not something we'd integrate into the codebase, but you can allow PDFs by modifying lib/pkp/classes/file/FileManager.inc.php in the getImageExtension function and adding a PDF entry. You'd also have to modify the template that displays these (templates/issue/issue.tpl) as the usual <img ...> tag won't work with PDFs. Ok - thank you Alec. Jay I patched our OJS 2.3.4 installation with the appropriate patch (that fixes MetadataForm.inc.php file), but the form at /ojs/<journal-name>/editor/issueData/ still accepts other file types. I could upload for example a file named "setup.exe", the image however was not showing, but I can see the file in the "public" directory, renamed as "cover... .exe" Ales, we're currently reviewing our file upload code to ensure that there aren't additional problems. Watch for an additional Bugzilla entry on our recommended patches page at http://pkp.sfu.ca/wiki/index.php/OJS_2.3.5_Recommended_Patches (we may or may not back-port fixes to prior versions, depending on severity). We are running Open Journal Systems 2.1.1.0. Is there a patch provided for this version, or is it not affected? Thanks a lot for your help. Tom Tom, OJS 2.2.0 and prior are not affected. |