Skip to content

Commit 39977e2

Browse files
author
Till Brehm
committed
Fixed #4648 Insufficient privilege check in sites module
1 parent b8f4c3f commit 39977e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/ajax_get_json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@
202202
}
203203

204204
if($type == 'getclientssldata'){
205-
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ?", $web_id);
205+
$web = $app->db->queryOneRecord("SELECT * FROM web_domain WHERE domain_id = ? AND ".$app->tform->getAuthSQL('r'), $web_id);
206206
$sys_group = $app->db->queryOneRecord("SELECT * FROM sys_group WHERE groupid = ?", $web['sys_groupid']);
207-
$client = $app->db->queryOneRecord("SELECT * FROM client WHERE client_id = ?", $sys_group['client_id']);
207+
$client = $app->db->queryOneRecord("SELECT company_name,contact_firstname, contact_name, street, zip, city, telephone, mobile,fax, country, state, email FROM client WHERE client_id = ?",$sys_group['client_id']);
208208
if(is_array($client) && !empty($client)){
209209
if($client['telephone'] == '' && $client['mobile'] != '') $client['telephone'] = $client['mobile'];
210210

0 commit comments

Comments
 (0)