Reject unterminated entries in the CoRE Link Format parser
resourcesFromCoreLinkList() extracted a link target with
parameterString.mid(1, length - 2), assuming the parameter was "<URI>"
and dropping the last character as the closing '>'. For an entry that
opens with '<' but has no closing '>', it silently dropped the last
character of the URI instead, producing a resource with a corrupted
path.
Only treat a parameter as a link target when it is bracketed at both
ends. An unterminated entry no longer sets a path and is dropped by
the existing empty-path check.
Task-number: QTBUG-149345
Pick-to: 6.12 6.11 6.8
Change-Id: I854a9e488b628f45627dff4c9e0fdf04662e6bcb
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>