6.0.0-beta1
10/16/25

[#3710] Get domain is invalid in some cases deleting virtual address
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

History
03/29/2006 09:18:50 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed, thanks.
03/29/2006 04:20:54 PM guilleva (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Get domain is invalid in some cases deleting virtual address
Queue ⇒ Vilma
Reply to this comment
The next code of virtuals/delete.php isn't fine when I delete some 
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.




Saved Queries