From: cash Date: Fri, 25 Jan 2013 23:16:19 +0000 (-0500) Subject: Fixes #4972 decode special chars before encoding for friendly titles X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=c54fd6c6de4442f308f999caf36ae075de42a69c;p=lorea%2Felgg.git Fixes #4972 decode special chars before encoding for friendly titles --- diff --git a/engine/lib/output.php b/engine/lib/output.php index bff0bf6e9..9295f2173 100644 --- a/engine/lib/output.php +++ b/engine/lib/output.php @@ -287,6 +287,8 @@ function elgg_get_friendly_title($title) { // handle some special cases $title = str_replace('&', 'and', $title); + // quotes and angle brackets stored in the database as html encoded + $title = htmlspecialchars_decode($title); $title = ElggTranslit::urlize($title);