Warn for uploads with new name but same content as local file
authorCormac Parle <cparle@wikimedia.org>
Thu, 30 Nov 2017 17:29:36 +0000 (17:29 +0000)
committerCormac Parle <cparle@wikimedia.org>
Thu, 30 Nov 2017 17:59:29 +0000 (17:59 +0000)
commitbfe05136098f37a63a9cb3010b394480c94c8510
tree50f6293298efc81c5aef015c5d7201446bd9e2e8
parent2a05b746848094dcf467b90d97443645e1be4bc8
Warn for uploads with new name but same content as local file

Previously warnings about the sha1 of an uploaded file being
the same as an existing file were stripped if the existing
file was in local storage - this was to avoid duplicate
warnings if a file with the same name had already been found
and had the same content. Now the warning is only stripped
for local files with the same name as the uploaded file.

Bug: T180691
Change-Id: I455df30085c05320dca976b9f7f8fb711a083271
includes/upload/UploadBase.php