diff --git a/WHATSNEW b/WHATSNEW index e78abae3d..6938e986a 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -162,6 +162,10 @@ Fixed bugs: was used. Bugzilla Report 43892. + * and disallowed manifest attributes whose name + contained the character '8'. + Bugzilla Report 45675. + Other changes: -------------- diff --git a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java index 9948056bc..1247eccdb 100644 --- a/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java +++ b/src/main/org/apache/tools/ant/taskdefs/ManifestTask.java @@ -50,7 +50,7 @@ public class ManifestTask extends Task { * {@value} */ public static final String VALID_ATTRIBUTE_CHARS = - "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ012345679-_"; + "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_"; /** * Holds the real data. diff --git a/src/tests/antunit/taskdefs/manifest-test.xml b/src/tests/antunit/taskdefs/manifest-test.xml new file mode 100644 index 000000000..ec1213f37 --- /dev/null +++ b/src/tests/antunit/taskdefs/manifest-test.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + +