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

html_entity_decode() should be called before strip_tags() in mail system #2648

Closed
stan-bg opened this issue Feb 5, 2015 · 0 comments
Closed

Comments

@stan-bg
Copy link
Contributor

stan-bg commented Feb 5, 2015

controller/information/contact.php + library/mail.php

now

$mail->setText(strip_tags($this->request->post['enquiry']));

public function setText($text) {
    $this->text= html_entity_decode($text, ENT_QUOTES, 'UTF-8');
}

should be

$mail->setText($this->request->post['enquiry']);

public function setText($text) {
    $this->text= strip_tags(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));
}
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

No branches or pull requests

2 participants