Skip to content
Snippets Groups Projects
Commit 88e0eb2e authored by Prasad's avatar Prasad
Browse files

Use sanitized value for query.

parent cb5996ca
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class Portal_ListView_Model extends Vtiger_ListView_Model { ...@@ -54,7 +54,7 @@ class Portal_ListView_Model extends Vtiger_ListView_Model {
public function getQuery() { public function getQuery() {
$query = 'SELECT portalid, portalname, portalurl, createdtime FROM vtiger_portal'; $query = 'SELECT portalid, portalname, portalurl, createdtime FROM vtiger_portal';
$searchValue = $this->get('search_value'); $searchValue = $this->getForSql('search_value');
if(!empty($searchValue)) if(!empty($searchValue))
$query .= " WHERE portalname LIKE '".$searchValue."%'"; $query .= " WHERE portalname LIKE '".$searchValue."%'";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment