missing uid check on comanche_block to ensure we get the block with that name that we own
This commit is contained in:
parent
7585b58d28
commit
15ae108832
@ -86,7 +86,8 @@ function comanche_replace_region($match) {
|
||||
|
||||
function comanche_block($name) {
|
||||
$o = '';
|
||||
$r = q("select * from item left join item_id on iid = item_id and item_id.uid = item.uid and service = 'BUILDBLOCK' and sid = '%s' limit 1",
|
||||
$r = q("select * from item left join item_id on iid = item_id and item_id.uid = item.uid and item.uid = %d and service = 'BUILDBLOCK' and sid = '%s' limit 1",
|
||||
intval($a->profile['profile_uid']),
|
||||
dbesc($name)
|
||||
);
|
||||
if($r) {
|
||||
|
Reference in New Issue
Block a user