We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0ba2d47 + f19670a commit f32cdcaCopy full SHA for f32cdca
core/java/android/webkit/MimeTypeMap.java
@@ -67,7 +67,7 @@ public static String getFileExtensionFromUrl(String url) {
67
// if the filename contains special characters, we don't
68
// consider it valid for our matching purposes:
69
if (filename.length() > 0 &&
70
- Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)]+", filename)) {
+ Pattern.matches("[a-zA-Z_0-9\\.\\-\\(\\)\\%]+", filename)) {
71
int dotPos = filename.lastIndexOf('.');
72
if (0 <= dotPos) {
73
return filename.substring(dotPos + 1);
0 commit comments