mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-23 11:18:28 +00:00
Fix handling of folded fields in Stanza. #270
Discovered by @sobczyk When whitespace is stripped from folded stanza fields, some fields values are glued together without whitespace which might change its meaning.
This commit is contained in:
1 parent
08bc5ac934
commit
76bf7cba04
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -230,7 +230,7 @@ func (c *ControlFileReader) ReadStanza(isRelease bool) (Stanza, error) {
|
||||
if lastFieldMultiline {
|
||||
stanza[lastField] += line + "\n"
|
||||
} else {
|
||||
stanza[lastField] += strings.TrimSpace(line)
|
||||
stanza[lastField] += " " + strings.TrimSpace(line)
|
||||
}
|
||||
} else {
|
||||
parts := strings.SplitN(line, ":", 2)
|
||||
|
||||
Reference in new issue
Block a user