]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #4972 decode special chars before encoding for friendly titles
authorcash <cash.costello@gmail.com>
Fri, 25 Jan 2013 23:16:19 +0000 (18:16 -0500)
committercash <cash.costello@gmail.com>
Fri, 25 Jan 2013 23:16:19 +0000 (18:16 -0500)
engine/lib/output.php

index bff0bf6e93f882113b258ae01f454a3fde1c3fa3..9295f21731c6a02a3887dfd5708984c0148d986a 100644 (file)
@@ -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);