]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tests/getpart: fix getpartattr to work with "data" and "data2"
authorDaniel Stenberg <daniel@haxx.se>
Wed, 8 Jun 2022 14:32:46 +0000 (16:32 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 8 Jun 2022 14:32:46 +0000 (16:32 +0200)
tests/getpart.pm

index 348bdd44d64073639467b3c2854f982244e5f08d..5e2720f2511832de4d1c3d628c5da8652edbe259 100644 (file)
@@ -5,7 +5,7 @@
 #                            | (__| |_| |  _ <| |___
 #                             \___|\___/|_| \_\_____|
 #
-# Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
 #
 # This software is licensed as described in the file COPYING, which
 # you should have received as part of this distribution. The terms
@@ -55,7 +55,7 @@ sub getpartattr {
         if(!$inside && ($_ =~ /^ *\<$section/)) {
             $inside++;
         }
-        if((1 ==$inside) && ( ($_ =~ /^ *\<$part([^>]*)/) ||
+        if((1 ==$inside) && ( ($_ =~ /^ *\<$part ([^>]*)/) ||
                               !(defined($part)) )
              ) {
             $inside++;