Fix log type and name in revdeleted messages: suppressions are stored in the suppress...
[lhc/web/wiklou.git] / includes / MessageCache.php
index 7f5d95d..b831f33 100644 (file)
@@ -575,6 +575,16 @@ class MessageCache {
                if( $message === false ) {
                        return '<' . htmlspecialchars($key) . '>';
                }
+
+               # Fix whitespace
+               $message = strtr( $message, 
+                       array(
+                               # Fix for trailing whitespace, removed by textarea
+                               ' ' => ' ',
+                               # Fix for NBSP, converted to space by firefox
+                               ' ' => "\xc2\xa0",
+                       ) );
+
                return $message;
        }