-
Notifications
You must be signed in to change notification settings - Fork 531
Internal: Add security fixes from 1.11.x #6079
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
Internal: Add security fixes from 1.11.x #6079
Conversation
| if ($form->validate()) { | ||
| $wrong_current_password = false; | ||
| $user_data = $form->getSubmitValues(1); | ||
| $user_data['item_id'] = api_get_user_id(); |
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.
Variable "user_data" is not in valid camel caps format
| if (isset($_POST['form_sent']) && $_POST['form_sent']) { | ||
| $form_sent = $_POST['form_sent']; | ||
| $elements_posted = $_POST['elements_in_name']; | ||
| $form_sent = (int) $_POST['form_sent']; |
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.
Variable "form_sent" is not in valid camel caps format
| $form_sent = $_POST['form_sent']; | ||
| $elements_posted = $_POST['elements_in_name']; | ||
| $form_sent = (int) $_POST['form_sent']; | ||
| $elements_posted = Security::remove_XSS($_POST['elements_in_name']); |
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.
Variable "elements_posted" is not in valid camel caps format
|
Code Climate has analyzed commit d9a4e94 and detected 176 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
ywarnier
left a comment
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.
One issue to review
| */ | ||
| function attr_on_filter($html) { | ||
| $prefix = uniqid('data-cke-').'-'; | ||
| return preg_replace('/(\s)(on)/i', '$1'.$prefix.'$2', $html); |
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.
@christianbeeznest This must be updated with the new form in 1.11.x as it was detected that this pattern here did not work
See 8c4e643
|
The rest seems fine. We'll see when the first pentest is over. |
No description provided.