From e8df4f235441d89ac1e1b79ca2e3883efe35c8b7 Mon Sep 17 00:00:00 2001 From: Joey Schulze Date: Wed, 2 Jul 2008 14:54:22 +0000 Subject: [PATCH] Trust the database (i.e. don't encode special characters twice) --- lib/functions.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.inc b/lib/functions.inc index 5b6c020..a81f2fb 100644 --- a/lib/functions.inc +++ b/lib/functions.inc @@ -245,8 +245,8 @@ function format_newspaper($id) $row = pg_fetch_array ($sth, 0); $ret = '
'; - $ret .= sprintf('

%s

', htmlspecialchars($row['name'])); - $zlist['newspaper'] = htmlspecialchars($row['name']); + $ret .= sprintf('

%s

', $row['name']); + $zlist['newspaper'] = $row['name']; $ret .= sprintf('

%s
Ort: %s
URL: %s

', $row['description'], $row['city'], -- 2.20.1