forked from extern/egroupware
Revert commit 8340520589
and implement the fix in more sane way
This commit is contained in:
parent
afa1918871
commit
e91d932390
@ -28,4 +28,28 @@ class Description extends Etemplate\Widget
|
||||
* @var string|array
|
||||
*/
|
||||
protected $legacy_options = 'bold-italic,link,activate_links,label_for,link_target,link_popup_size,link_title';
|
||||
|
||||
/**
|
||||
* Set up what we know on the server side.
|
||||
*
|
||||
* Encode html specialchars (eg. < to <) because client-side core
|
||||
* widget runs decoding for the value causes elimination of none
|
||||
* encoded html chars. This will help included links inside description
|
||||
* get displayed if activate_links = ture for description widget is set.
|
||||
*
|
||||
* @param string $cname
|
||||
* @param array $expand values for keys 'c', 'row', 'c_', 'row_', 'cont'
|
||||
*/
|
||||
public function beforeSendToClient($cname, array $expand=null)
|
||||
{
|
||||
if ($this->attrs['activate_links'])
|
||||
{
|
||||
$form_name = self::form_name($cname, $this->id, $expand);
|
||||
$value =& self::get_array(self::$request->content, $form_name);
|
||||
if (!empty($value))
|
||||
{
|
||||
$value = htmlspecialchars($value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user