diff --git a/includes/LinkTitles_Extension.php b/includes/LinkTitles_Extension.php index e0f26eb..8471397 100644 --- a/includes/LinkTitles_Extension.php +++ b/includes/LinkTitles_Extension.php @@ -113,7 +113,7 @@ class Extension { // targets. This includes the current page. $blackList = str_replace( '_', ' ', '("' . implode( '", "',$wgLinkTitlesBlackList ) . '", "' . - self::$currentTitle->getDbKey() . '")' ); + addslashes( self::$currentTitle->getDbKey() ) . '")' ); // Build an SQL query and fetch all page titles ordered by length from // shortest to longest. Only titles from 'normal' pages (namespace uid