don't allow tags in app source
This commit is contained in:
parent
0e809b9301
commit
5633430a19
3 changed files with 3 additions and 3 deletions
|
@ -821,7 +821,7 @@ function fb_consume_stream($uid,$j,$wall = false) {
|
|||
$datarray['owner-avatar'] = $self[0]['thumb'];
|
||||
}
|
||||
if(isset($entry->application) && isset($entry->application->name) && strlen($entry->application->name))
|
||||
$datarray['app'] = $entry->application->name;
|
||||
$datarray['app'] = strip_tags($entry->application->name);
|
||||
else
|
||||
$datarray['app'] = 'facebook';
|
||||
$datarray['author-name'] = $from->name;
|
||||
|
|
|
@ -338,7 +338,7 @@ function get_atom_elements($feed,$item) {
|
|||
|
||||
$apps = $item->get_item_tags(NAMESPACE_STATUSNET,'notice_info');
|
||||
if($apps && $apps[0]['attribs']['']['source']) {
|
||||
$res['app'] = $apps[0]['attribs']['']['source'];
|
||||
$res['app'] = strip_tags(unxmlify($apps[0]['attribs']['']['source']));
|
||||
if($res['app'] === 'web')
|
||||
$res['app'] = 'OStatus';
|
||||
}
|
||||
|
|
|
@ -61,7 +61,7 @@ function item_post(&$a) {
|
|||
|
||||
$profile_uid = ((x($_POST,'profile_uid')) ? intval($_POST['profile_uid']) : 0);
|
||||
$post_id = ((x($_POST['post_id'])) ? intval($_POST['post_id']) : 0);
|
||||
$app = ((x($_POST['source'])) ? notags($_POST['source']) : '');
|
||||
$app = ((x($_POST['source'])) ? strip_tags($_POST['source']) : '');
|
||||
|
||||
if(! can_write_wall($a,$profile_uid)) {
|
||||
notice( t('Permission denied.') . EOL) ;
|
||||
|
|
Loading…
Reference in a new issue