1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

getpart.pm: when no part match, return blank when section ends

This commit is contained in:
Daniel Stenberg 2011-08-04 17:36:31 +02:00
parent c4142034ff
commit d2c22411af

View File

@ -63,6 +63,10 @@ sub getpartattr {
}
last;
}
# detect end of section when part wasn't found
elsif((1 ==$inside) && ($_ =~ /^ *\<\/$section\>/)) {
last;
}
elsif((2 ==$inside) && ($_ =~ /^ *\<\/$part/)) {
$inside--;
}