From 3693a818bd815362beb726ab08712daf6cf990b6 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 15 Oct 2002 13:30:23 +0000 Subject: [PATCH] fix to allow '&' in attached files (needs to be quoted ('%26') in the download-link) and preserving Linebreaks in InfoLog entries --- infolog/inc/class.uiinfolog.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 756b3e27c8..bb998552d9 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -90,6 +90,7 @@ $info = $this->bo->read($id); $info['anzSubs'] = $this->bo->anzSubs($id); $info += $this->formatInfo($info,$action,$action_id); + $info['info_des'] = nl2br($info['info_des']); $readonlys["edit[$id]"] = !$this->bo->check_access($id,PHPGW_ACL_EDIT); $readonlys["delete[$id]"] = !$this->bo->check_access($id,PHPGW_ACL_DELETE); @@ -520,7 +521,7 @@ $links .= $this->html->a_href($name,'/index.php', $this->menuaction('get_file') + array( 'info_id' => $info['info_id'], - 'filename' => $name + 'filename' => str_replace('&','%26',$name) ),'target=_blank'); if ($comment) $links .= ' (' . $comment . ')'; }