aboutsummaryrefslogtreecommitdiffstats
path: root/include/message.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-11-02 08:44:46 +0100
committerMario <mario@mariovavti.com>2017-11-02 08:50:16 +0100
commitcf5beafcfd6287abaacadc2ae2f6ac196c4a7adc (patch)
tree1d01ab6520b60370fa7c923801bb33f444d907af /include/message.php
parent12f33d2cd43502fb8ce7b3399a4c60e40c10f723 (diff)
downloadvolse-hubzilla-cf5beafcfd6287abaacadc2ae2f6ac196c4a7adc.tar.gz
volse-hubzilla-cf5beafcfd6287abaacadc2ae2f6ac196c4a7adc.tar.bz2
volse-hubzilla-cf5beafcfd6287abaacadc2ae2f6ac196c4a7adc.zip
fix issues with diaspora xchans
Diffstat (limited to 'include/message.php')
-rw-r--r--include/message.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/message.php b/include/message.php
index 3f003e020..477c7172c 100644
--- a/include/message.php
+++ b/include/message.php
@@ -381,7 +381,7 @@ function private_messages_list($uid, $mailbox = '', $start = 0, $numitems = 0) {
$chans[] = $s;
}
- $c = q("select * from xchan where xchan_hash in (" . implode(',',$chans) . ")");
+ $c = q("select * from xchan where xchan_hash in (" . protect_sprintf(implode(',',$chans)) . ")");
foreach($r as $k => $rr) {
$r[$k]['from'] = find_xchan_in_array($rr['from_xchan'],$c);
@@ -420,7 +420,7 @@ function private_messages_fetch_message($channel_id, $messageitem_id, $updatesee
$chans[] = $s;
}
- $c = q("select * from xchan where xchan_hash in (" . implode(',',$chans) . ")");
+ $c = q("select * from xchan where xchan_hash in (" . protect_sprintf(implode(',',$chans)) . ")");
foreach($messages as $k => $message) {
$messages[$k]['from'] = find_xchan_in_array($message['from_xchan'],$c);
@@ -545,7 +545,7 @@ function private_messages_fetch_conversation($channel_id, $messageitem_id, $upda
}
- $c = q("select * from xchan where xchan_hash in (" . implode(',',$chans) . ")");
+ $c = q("select * from xchan where xchan_hash in (" . protect_sprintf(implode(',',$chans)) . ")");
foreach($messages as $k => $message) {
$messages[$k]['from'] = find_xchan_in_array($message['from_xchan'],$c);