url field fix encode

This commit is contained in:
Yuri Kuznetsov
2022-09-10 09:59:44 +03:00
parent 011581f09d
commit ccb6c19c72
+3 -1
View File
@@ -103,7 +103,9 @@ define('views/fields/url', ['views/fields/varchar', 'lib!underscore'], function
value = this.strip(value);
}
value = encodeURI(value);
if (value === decodeURI(value)) {
value = encodeURI(value);
}
return value;
},