Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code review fixes #4412

Merged
merged 16 commits into from
Oct 30, 2024
Merged

Code review fixes #4412

merged 16 commits into from
Oct 30, 2024

Conversation

nilsteampassnet
Copy link
Owner

Set of small fixes during code review

@@ -28,7 +28,7 @@

define('TP_VERSION', '3.1.2');
define("UPGRADE_MIN_DATE", "1727110744");
define('TP_VERSION_MINOR', '134');
define('TP_VERSION_MINOR', '6');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops

Comment on lines 487 to 489

// Force exit to avoid bypass filters.
exit;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upload will continue even if a positive is triggered in a filter without this exit.
This will open a security issue.

Comment on lines 29 to 31
define('TP_VERSION', '3.1.2');
define("UPGRADE_MIN_DATE", "1727110744");
define('TP_VERSION_MINOR', '6');
define('TP_VERSION_MINOR', '7');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you forget to bump TP_VERSION to 3.1.3?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In fact I have not yet decided.
We can have this decision once we decide to make 3.1.2 released.
I'm open to discuss it 😉

@nilsteampassnet nilsteampassnet marked this pull request as draft October 12, 2024 10:35
@nilsteampassnet nilsteampassnet marked this pull request as ready for review October 19, 2024 07:19
Comment on lines 371 to 374
} else {
// Do we have errors
echo handleUploadError('Error while moving the uploaded file.');
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing exit; ?

@nilsteampassnet nilsteampassnet merged commit 4ae7911 into master Oct 30, 2024
1 check was pending
@nilsteampassnet nilsteampassnet deleted the code_review branch October 30, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants