God. Damn. You. Php.
authorSam Reed <reedy@users.mediawiki.org>
Fri, 23 Sep 2011 18:01:40 +0000 (18:01 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Fri, 23 Sep 2011 18:01:40 +0000 (18:01 +0000)
Followup r97919

includes/GlobalFunctions.php

index eb61720..632d1b0 100644 (file)
@@ -853,14 +853,14 @@ function wfErrorLog( $text, $file ) {
 
                        // Limit to 64KB
                        if ( strlen( $text ) > 65506 ) {
-                               $text = substr( $text, 0, 65505 );
+                               $text = substr( $text, 0, 65506 );
                        }
 
                        if ( substr( $text, -1 ) != "\n" ) {
                                $text .= "\n";
                        }
                } elseif ( strlen( $text ) > 65507 ) {
-                       $text = substr( $text, 0, 65506 );
+                       $text = substr( $text, 0, 65507 );
                }
 
                $sock = socket_create( $domain, SOCK_DGRAM, SOL_UDP );