[Vtigercrm-developers] Mailconverter fails valid usernames [vt 6.2]

Stacey Johnson stacey.johnson110 at gmail.com
Thu Jun 11 01:34:55 GMT 2015


Following mail converter... the conditions should be applied to every field
not only to Subject and body, so it will be easier filtering records
creation


Stacey


On Thu, Jun 11, 2015 at 8:08 AM, Hamono, Chris (DPC) <Chris.Hamono at sa.gov.au
> wrote:

> When setting up a mailconverter I kept getting errors “could not connect.
> Special Characters not allowed”
>
>
>
> It appears vtiger incorrectly rejects any username that is not pure alpha
> numeric.
>
>
>
> The file " modules\Settings\MailConverter\models\Record.php"
>
>
>
> Has this bit of code @ line 210
>
>            $userName = $this->get('username');
>
>            if($userName && !validateEmailId($userName) &&
> !validateAlphanumericInput($userName)) {
>
>                 return false;
>
>            }
>
>
>
> This test fails if the username contains non numeric characters such as a
> full stop (which is a common format for user names e.g.
> “firstname.lastname”)
>
>
>
> Oddly it doesn’t fail if the username is not supplied or equates to false.
>
>
>
> Commenting out this code allows the mail box to be correctly configured.
>
>
>
> Chris
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150611/05af1ad6/attachment.html>


More information about the vtigercrm-developers mailing list