Summary | Get domain is invalid in some cases deleting virtual address |
Queue | Vilma |
Type | Bug |
State | Resolved |
Priority | 1. Low |
Owners | |
Requester | guilleva (at) gmail (dot) com |
Created | 03/29/2006 (7141 days ago) |
Due | |
Updated | 03/29/2006 (7141 days ago) |
Assigned | |
Resolved | 03/29/2006 (7141 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Get domain is invalid in some cases deleting virtual address
Queue ⇒ Vilma
virtual address which destination is a remote address.
line 21 to 28:
$vars = Variables::getDefaultVariables();
$domain = Vilma::getDomain();
$virtual_id = $vars->get('virtual_id');
$formname = $vars->get('formname');
$virtual = $vilma->getVirtual($virtual_id);
$domain = Vilma::stripDomain($virtual['virtual_destination']);
$domain = $vilma->getDomainByName($domain);
The line 27 must be $domain = Vilma::stripDomain($virtual['virtual_email']);
because virtual_destination can be someuser@gmail.com
I don't know if the line 22 ("$domain = Vilma::getDomain();") have any
sense if after that, in
the line 27, $domain is overwrited.