Commit 3c8b5c1e authored by Zot's avatar Zot Committed by Mario

log whoever is sending diaspora profile birthdays as an array and silently...

log whoever is sending diaspora profile birthdays as an array and silently fail the profile message.
parent 1737c967
......@@ -1791,6 +1791,13 @@ class Diaspora_Receiver {
$images = import_xchan_photo($image_url,$contact['xchan_hash']);
// Somebody is sending us birthday arrays.
if(is_array($birthday)) {
logger('Illegal input: Diaspora birthday is an array. ' . print_r($this->xmlbase,true));
return 202;
}
// Generic birthday. We don't know the timezone. The year is irrelevant.
if(intval(substr($birthday,0,4)) <= 1004)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment