mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 17:59:29 +02:00
Prevent crash on saving page with quote character.
- FIX: Prevent a crash when trying to save a page whose title contains a quote character. Closes #8.
This commit is contained in:
@ -113,7 +113,7 @@ class Extension {
|
|||||||
// targets. This includes the current page.
|
// targets. This includes the current page.
|
||||||
$blackList = str_replace( '_', ' ',
|
$blackList = str_replace( '_', ' ',
|
||||||
'("' . implode( '", "',$wgLinkTitlesBlackList ) . '", "' .
|
'("' . implode( '", "',$wgLinkTitlesBlackList ) . '", "' .
|
||||||
self::$currentTitle->getDbKey() . '")' );
|
addslashes( self::$currentTitle->getDbKey() ) . '")' );
|
||||||
|
|
||||||
// Build an SQL query and fetch all page titles ordered by length from
|
// Build an SQL query and fetch all page titles ordered by length from
|
||||||
// shortest to longest. Only titles from 'normal' pages (namespace uid
|
// shortest to longest. Only titles from 'normal' pages (namespace uid
|
||||||
|
Reference in New Issue
Block a user