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:
parent
c4142034ff
commit
d2c22411af
@ -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--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user