-
-
Notifications
You must be signed in to change notification settings - Fork 552
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
Code review fixes #4412
Conversation
includes/config/include.php
Outdated
@@ -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'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
sources/upload.attachments.php
Outdated
|
||
// Force exit to avoid bypass filters. | ||
exit; |
There was a problem hiding this comment.
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.
includes/config/include.php
Outdated
define('TP_VERSION', '3.1.2'); | ||
define("UPGRADE_MIN_DATE", "1727110744"); | ||
define('TP_VERSION_MINOR', '6'); | ||
define('TP_VERSION_MINOR', '7'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 😉
sources/upload.files.php
Outdated
} else { | ||
// Do we have errors | ||
echo handleUploadError('Error while moving the uploaded file.'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing exit;
?
Set of small fixes during code review