From: Brion Vibber Date: Thu, 8 Mar 2007 22:14:53 +0000 (+0000) Subject: * (bug 9223) Disallow magic tilde sequences in page titles and usernames X-Git-Tag: 1.31.0-rc.0~53848 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=31f1b78212fbaa7933a126311aa15484cf654590;p=lhc%2Fweb%2Fwiklou.git * (bug 9223) Disallow magic tilde sequences in page titles and usernames --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 095a89ad03..ffb721c867 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -254,6 +254,8 @@ lighter making things easier to read. * (bug 9217) Balance wfProfile calls in Skin::outputPage * (bug 9222) PostgreSQL updater should not be version-specific * (bug 1723) Article size in history +* (bug 9223) Disallow magic tilde sequences in page titles and usernames + == Languages updated == diff --git a/includes/Title.php b/includes/Title.php index c40b6e6d48..15b5fb57cb 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1824,6 +1824,13 @@ class Title { { return false; } + + /** + * Magic tilde sequences? Nu-uh! + */ + if( strpos( $dbkey, '~~~' ) !== false ) { + return false; + } /** * Limit the size of titles to 255 bytes.