]> git.mjollnir.org Git - moodle.git/commitdiff
fixes utf-8 over encoding on output links
authordiml <diml>
Mon, 7 Apr 2008 21:11:08 +0000 (21:11 +0000)
committerdiml <diml>
Mon, 7 Apr 2008 21:11:08 +0000 (21:11 +0000)
search/documents/resource_document.php

index 0258aa6b07ddf7b58ce6464ca7c0f7a7a205c5ee..0e60706b2bb78018bc0c17136f42fa0ec7ba941d 100644 (file)
@@ -316,5 +316,13 @@ function resource_check_text_access($path, $itemtype, $this_id, $user, $group_id
     }
     
     return true;
-} //resource_check_text_access
+}
+
+/**
+* post processes the url for cleaner output.
+* @param string $title
+*/
+function resource_link_post_processing($title){
+    return mb_convert_encoding($title, 'auto', 'UTF-8');
+}
 ?>
\ No newline at end of file