mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 23:35:12 +00:00
prevent database hackery from leaking over the wire
This commit is contained in:
parent
ecb86dd6b2
commit
ab5bf1b7d6
1 changed files with 2 additions and 1 deletions
|
@ -1094,7 +1094,8 @@ function encode_item($item,$mirror = false) {
|
||||||
$x['message_parent'] = $item['thr_parent'];
|
$x['message_parent'] = $item['thr_parent'];
|
||||||
$x['created'] = $item['created'];
|
$x['created'] = $item['created'];
|
||||||
$x['edited'] = $item['edited'];
|
$x['edited'] = $item['edited'];
|
||||||
$x['expires'] = $item['expires'];
|
// always send 0's over the wire
|
||||||
|
$x['expires'] = (($item['expires'] == '0001-01-01 00:00:00') ? '0000-00-00 00:00:00' : $item['expires']);
|
||||||
$x['commented'] = $item['commented'];
|
$x['commented'] = $item['commented'];
|
||||||
$x['mimetype'] = $item['mimetype'];
|
$x['mimetype'] = $item['mimetype'];
|
||||||
$x['title'] = $item['title'];
|
$x['title'] = $item['title'];
|
||||||
|
|
Loading…
Reference in a new issue