GUID should be urlencoded in template since it is urlencoded in uri as well.

This commit is contained in:
Michael Vogel 2015-07-11 14:37:02 +02:00
parent bc6e5a4f2d
commit d55275f211
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,11 @@
<?php
/*
To-Do:
- GET /people/9aed8882b9f64896/stream
- POST /receive/users/9aed8882b9f64896/
*/
require_once('include/crypto.php');
require_once('include/items.php');
require_once('include/bb2diaspora.php');

View file

@ -325,7 +325,7 @@ class Item extends BaseObject {
'body' => $body_e,
'text' => $text_e,
'id' => $this->get_id(),
'guid' => $item['guid'],
'guid' => urlencode($item['guid']),
'linktitle' => sprintf( t('View %s\'s profile @ %s'), $profile_name, ((strlen($item['author-link'])) ? $item['author-link'] : $item['url'])),
'olinktitle' => sprintf( t('View %s\'s profile @ %s'), $this->get_owner_name(), ((strlen($item['owner-link'])) ? $item['owner-link'] : $item['url'])),
'to' => t('to'),