MantisBT - v3.2 Release
View Issue Details
0000325v3.2 ReleaseEventspublic2009-12-07 07:002014-08-16 18:58
Reportermisjka 
Assigned Tocaseydk 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version3.2Fixed in Version3.2 
Summary0000325: Bug in code for uploading files
DescriptionHi!

As it seems w2p has inherited the following code bug from dP:

In modules/files/files.class.php, row 291-293, the "backquotes" (`) should be replaced with "normalquotes" ('). Else, the code generates an error on my server at least, complaining about shell_exec not being allowed.

            $x = `$parser -`;
        } else {
            $x = `$parser`;

shoud be changed to

            $x = '$parser -';
        } else {
            $x = '$parser';
TagsNo tags attached.
Attached Files

Notes
(0000631)
caseydk   
2009-12-07 20:30   
You have the shell_exec permissions blocked which is causing the error.

I think we need to rework the parsing in general to handle numerous file parsers regardless of the underlying permissions or the operating system itself.
(0000634)
misjka   
2009-12-07 21:55   
> You have the shell_exec permissions blocked which is causing the error.
> I think we need to rework the parsing in general to handle numerous file parsers regardless of the underlying permissions or the operating system itself.

Yes, I'm aware of the blocked shell exec permission but I believe it's quite common among commercial/public webhosts to have that setting?
The parsing rework sounds great!

(0002073)
caseydk   
2011-07-23 20:16   
I've applied a patch in r2008 that will suppress this error since there's not a clean way to approach it at the moment.
(0003439)
caseydk   
2014-06-11 18:08   
Resolved in development:
https://github.com/web2project/web2project/commit/c1852d8863abc7a0802763627b6dd520447b58d8

Issue History
2009-12-07 07:00misjkaNew Issue
2009-12-07 18:45caseydkProjectv1.1 Release (Closed) => v1.2 Release (Closed)
2009-12-07 20:30caseydkNote Added: 0000631
2009-12-07 20:30caseydkStatusnew => feedback
2009-12-07 20:31caseydkProjectv1.2 Release (Closed) => Pending Requests
2009-12-07 21:55misjkaNote Added: 0000634
2009-12-07 21:55misjkaNote Edited: 0000634
2010-01-31 22:33caseydkCategory-- none specified -- => Files
2011-02-24 01:03caseydkProjectPending Requests => v2.4 Release (Closed)
2011-07-23 20:15caseydkProjectv2.4 Release (Closed) => Pending Requests
2011-07-23 20:16caseydkNote Added: 0002073
2014-06-11 18:07caseydkProjectPending Requests => v3.2 Release
2014-06-11 18:07caseydkCategoryGeneral => Calendar
2014-06-11 18:07caseydkProduct Version1.1 =>
2014-06-11 18:07caseydkFixed in Version => 3.2
2014-06-11 18:07caseydkTarget Version => 3.2
2014-06-11 18:08caseydkNote Added: 0003439
2014-06-11 18:08caseydkStatusfeedback => resolved
2014-06-11 18:08caseydkResolutionopen => fixed
2014-06-11 18:08caseydkAssigned To => caseydk
2014-07-16 21:31caseydkStatusresolved => closed
2014-08-16 18:58caseydkCategoryCalendar => Events