fix multi-line paste (#6050)

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
Parneet Singh 2024-12-20 17:59:08 +05:30 committed by GitHub
parent 4c9637c821
commit 70b4f78a5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -70,7 +70,7 @@ public class UploadMediaDetailInputFilter implements InputFilter {
public CharSequence filter(CharSequence source, int start, int end, Spanned dest, int dstart,
int dend) {
if (checkBlocklisted(source)) {
if (start == dstart) {
if (start == dstart && dest.length() > 0) {
return dest;
}