aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2013-01-25 18:16:19 -0500
committercash <cash.costello@gmail.com>2013-01-25 18:16:19 -0500
commitc54fd6c6de4442f308f999caf36ae075de42a69c (patch)
tree285f0e35ce65ae0de832083af1acd5d6340a45a7 /engine
parent5d407a2c0fd351cc9b50c4a317200729df5d50da (diff)
downloadelgg-c54fd6c6de4442f308f999caf36ae075de42a69c.tar.gz
elgg-c54fd6c6de4442f308f999caf36ae075de42a69c.tar.bz2
Fixes #4972 decode special chars before encoding for friendly titles
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/output.php2
1 files changed, 2 insertions, 0 deletions
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('&amp;', 'and', $title);
+ // quotes and angle brackets stored in the database as html encoded
+ $title = htmlspecialchars_decode($title);
$title = ElggTranslit::urlize($title);