Skip to content

Commit 70b4f78

Browse files
fix multi-line paste (commons-app#6050)
Signed-off-by: parneet-guraya <[email protected]>
1 parent 4c9637c commit 70b4f78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/fr/free/nrw/commons/upload/UploadMediaDetailInputFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private CharSequence removeBlocklisted(CharSequence source) {
7070
public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart,
7171
int dend) {
7272
if (checkBlocklisted(source)) {
73-
if (start == dstart) {
73+
if (start == dstart && dest.length() > 0) {
7474
return dest;
7575
}
7676

0 commit comments

Comments
 (0)