* Trim whitespace from option values to weather line-ending corruption problems
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Jun 2005 02:16:10 +0000 (02:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 23 Jun 2005 02:16:10 +0000 (02:16 +0000)
RELEASE-NOTES
includes/User.php

index 07a9165..7ec1db5 100644 (file)
@@ -326,6 +326,7 @@ Various bugfixes, small features, and a few experimental things:
 * (bug 750) Keep line endings consistent in LocalSettings.php
 * (bug 1577) Add 'printable version' tab in MonoBook for people who don't
   realize you can just hit print to get a nicely formatted printable page.
+* Trim whitespace from option values to weather line-ending corruption problems
 
 
 === Caveats ===
index 4242b81..c73da93 100644 (file)
@@ -775,7 +775,7 @@ class User {
        function getOption( $oname ) {
                $this->loadFromDatabase();
                if ( array_key_exists( $oname, $this->mOptions ) ) {
-                       return $this->mOptions[$oname];
+                       return trim( $this->mOptions[$oname] );
                } else {
                        return '';
                }