Skip to content
Snippets Groups Projects
Commit 0bc054bc authored by Demian Katz's avatar Demian Katz
Browse files

Avoid encoding problems in stripArticles().

parent 0716641f
Branches
Tags
No related merge requests found
......@@ -366,7 +366,9 @@ class VuFind
{
static $articles = ['a', 'an', 'the'];
$text = strtolower(trim($in));
$text = is_callable('mb_strtolower')
? mb_strtolower(trim($in), 'UTF-8')
: strtolower(trim($in));
foreach ($articles as $a) {
if (substr($text, 0, strlen($a) + 1) == ($a . ' ')) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment