mirror of
https://github.com/curl/curl.git
synced 2026-07-16 09:07:21 +03:00
getpart.pm: when no part match, return blank when section ends
This commit is contained in:
parent
c4142034ff
commit
d2c22411af
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue