[API] Security hotfix for source, picked from postActive
This commit is contained in:
parent
b6bcd3b8c0
commit
58d9b91dd3
@ -166,6 +166,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
|
||||
parent::prepare($args);
|
||||
|
||||
$this->status = $this->trimmed('status');
|
||||
$this->source = $this->trimmed('source');
|
||||
$this->lat = $this->trimmed('lat');
|
||||
$this->lon = $this->trimmed('long');
|
||||
$matches = array();
|
||||
@ -294,6 +295,7 @@ class ApiStatusesUpdateAction extends ApiAuthAction
|
||||
|
||||
|
||||
$content = html_entity_decode($status_shortened, ENT_NOQUOTES, 'UTF-8');
|
||||
$source = html_entity_decode($this->source, ENT_NOQUOTES, 'UTF-8');
|
||||
|
||||
$options = array('reply_to' => $reply_to);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user