[Vtigercrm-commits] [vtiger development] #7327: Prevent duplicate http:// in link for account website
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Jan 16 02:37:00 PST 2012
#7327: Prevent duplicate http:// in link for account website
-------------------------+--------------------------------------------------
Reporter: janberend | Owner: developer
Type: enhancement | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.3.0
Severity: Low | Keywords: account, URI, link, http
-------------------------+--------------------------------------------------
Prevent duplicate http:// in URI for accounts websites
File:
/modules/Accounts/Accounts.php
Original:
{{{
} else if ($colname == 'website') {
$data = '<a href="http://'. $data .'" target="_blank">'.$data.'</a>';
}
}}}
Enhanced:
{{{
} else if ($colname == 'website') {
$data = trim($data, 'http://');
$data = '<a href="http://'. $data .'" target="_blank">'.$data.'</a>';
}
}}}
Patch is attached
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7327>
vtiger development <http://trac.vtiger.com/>
vtiger CRM
More information about the vtigercrm-commits
mailing list