fix up new text address handling in page content dumps
authorAriel T. Glenn <ariel@wikimedia.org>
Mon, 25 Mar 2019 16:50:27 +0000 (18:50 +0200)
committerAriel T. Glenn <ariel@wikimedia.org>
Mon, 25 Mar 2019 16:52:22 +0000 (18:52 +0200)
Broken in I979b6c8f0a72bc1f5ecce1d499d3fdfa0f671588

Bug: T174031
Change-Id: Ia31fc7b559f59d53bb503a59abf9110f0e65178c

maintenance/dumpTextPass.php

index f515df7..61c63e9 100644 (file)
@@ -839,6 +839,7 @@ TEXT
                if ( $newAddress === false ) {
                        return false;
                }
+               $newAddress = trim( $newAddress );
                if ( strpos( $newAddress, ':' ) === false ) {
                        $newAddress = SqlBlobStore::makeAddressFromTextId( intval( $newAddress ) );
                }