Skip to content

Conversation

@christianbeeznest
Copy link
Contributor

No description provided.

if ($form->validate()) {
$wrong_current_password = false;
$user_data = $form->getSubmitValues(1);
$user_data['item_id'] = api_get_user_id();

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'];

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']);

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

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit d9a4e94 and detected 176 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 152
Clarity 23
Bug Risk 1

View more on Code Climate.

@christianbeeznest christianbeeznest merged commit f93ee0d into chamilo:master Feb 10, 2025
4 of 7 checks passed
Copy link
Member

@ywarnier ywarnier left a 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);
Copy link
Member

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

@ywarnier
Copy link
Member

The rest seems fine. We'll see when the first pentest is over.

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