When submitting an email address that contains an ' trough the profile page, the address is rejected because it is considered being wrongly formatted.
This is due to magic quotes changing (apo'strophe@example.com) into (apo'strophe@example.com).
Steps to reproduce: Change an email address of a user into one containing an '.
**Reported by stim on 26 Apr 2011 11:42**
**Version:** 2.2.1
When submitting an email address that contains an ' trough the profile page, the address is rejected because it is considered being wrongly formatted.
This is due to magic quotes changing (apo'strophe@example.com) into (apo'strophe@example.com).
**Steps to reproduce:** Change an email address of a user into one containing an '.
[Piwigo Bugtracker #2282](http://piwigo.org/bugs/view.php?id=2282)
<!-- github-sync-id:97226259 -->
(I don't really think it is necessary to allow ' in email addresses, but currently the program is not behaving like the contract (the regexp) says)
**Comment posted by stim on 26 Apr 2011 11:43**
(I don't really think it is necessary to allow ' in email addresses, but currently the program is not behaving like the contract (the regexp) says)
<!-- github-comment-id:124892312 -->
According to RFC 822 it is valid to have an apostrophe in ones email address. Still I think (just like stim) that it is not really necessary to allow them. It brings problems with it like SQL injections and such...
**Comment posted by jcommelin on 2 May 2011 19:04**
According to RFC 822 it is valid to have an apostrophe in ones email address. Still I think (just like stim) that it is not really necessary to allow them. It brings problems with it like SQL injections and such...
<!-- github-comment-id:124892322 -->
Horrible attitude to take, and unfortunately it is pervasive through the Piwigo code.
Piwigo is attempting to be an internationally useful program. The fr.piwigo.org forums are full of complaints about errors in email and file names where apostrophe and accents are present.
Input sanitation is a basic thing. It is a solved problem. Automatically escaping URLs and email addresses is also a solved problem.
Basically, if my file system allows me to name a file "Robert'); DROP TABLE Students;--" then it should handle it. Observe that Mantis (the bug database) doesn't choke and die on accents and apostrophes.
**Comment posted by bryanw on 25 Sep 2014 20:26**
Horrible attitude to take, and unfortunately it is pervasive through the Piwigo code.
Piwigo is attempting to be an internationally useful program. The fr.piwigo.org forums are full of complaints about errors in email and file names where apostrophe and accents are present.
Input sanitation is a basic thing. It is a solved problem. Automatically escaping URLs and email addresses is also a solved problem.
Basically, if my file system allows me to name a file "Robert'); DROP TABLE Students;--" then it should handle it. Observe that Mantis (the bug database) doesn't choke and die on accents and apostrophes.
<!-- github-comment-id:124892335 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Reported by stim on 26 Apr 2011 11:42
Version: 2.2.1
When submitting an email address that contains an ' trough the profile page, the address is rejected because it is considered being wrongly formatted.
This is due to magic quotes changing (apo'strophe@example.com) into (apo'strophe@example.com).
Steps to reproduce: Change an email address of a user into one containing an '.
Piwigo Bugtracker #2282
Comment posted by stim on 26 Apr 2011 11:43
(I don't really think it is necessary to allow ' in email addresses, but currently the program is not behaving like the contract (the regexp) says)
Comment posted by jcommelin on 2 May 2011 19:04
According to RFC 822 it is valid to have an apostrophe in ones email address. Still I think (just like stim) that it is not really necessary to allow them. It brings problems with it like SQL injections and such...
Comment posted by bryanw on 25 Sep 2014 20:26
Horrible attitude to take, and unfortunately it is pervasive through the Piwigo code.
Piwigo is attempting to be an internationally useful program. The fr.piwigo.org forums are full of complaints about errors in email and file names where apostrophe and accents are present.
Input sanitation is a basic thing. It is a solved problem. Automatically escaping URLs and email addresses is also a solved problem.
Basically, if my file system allows me to name a file "Robert'); DROP TABLE Students;--" then it should handle it. Observe that Mantis (the bug database) doesn't choke and die on accents and apostrophes.
This issue might be useless, due to new validation system, based on filter_var.