Ticket #1194 (Cannot create dmarc dns record from frontend) created

  • [feedquote='Trac','http://trac.i-mscp.net/ticket/1194']

    Hi,

    When i want to create a dmarc record TXT verification failed.

    Current preg_match does not allow ";" and "@" chars. For this we need to change one line;

    Code
    1. /var/www/imscp/gui/public/client# diff dns_edit.php dns_edit.php.ORG
    2. 190c190
    3. < } elseif (!preg_match('/^([a-zA-Z0-9\+\?\-\*_~=:. \/;@])+$/', str_replace('"', '', $record['dns_txt_data']))) {
    4. ---
    5. > } elseif (!preg_match('/^([a-zA-Z0-9\+\?\-\*_~=:. \/])+$/', str_replace('"', '', $record['dns_txt_data']))) {

    [/feedquote]