Skip to content

Commit 7ddcec3

Browse files
committed
Fixes #6082: Support colons in webhook header values
1 parent 348fca7 commit 7ddcec3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/release-notes/version-2.10.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* [#6070](https://github.com/netbox-community/netbox/issues/6070) - Add missing `count_ipaddresses` attribute to VMInterface serializer
1717
* [#6073](https://github.com/netbox-community/netbox/issues/6073) - Permit users to manage their own REST API tokens without needing explicit permission
1818
* [#6081](https://github.com/netbox-community/netbox/issues/6081) - Fix interface connections REST API endpoint
19+
* [#6082](https://github.com/netbox-community/netbox/issues/6082) - Support colons in webhook header values
1920
* [#6108](https://github.com/netbox-community/netbox/issues/6108) - Do not infer tenant assignment from parent objects for prefixes, IP addresses
2021
* [#6117](https://github.com/netbox-community/netbox/issues/6117) - Handle exception when attempting to assign an MPTT-enabled model as its own parent
2122
* [#6131](https://github.com/netbox-community/netbox/issues/6131) - Correct handling of boolean fields when cloning objects

netbox/extras/models/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def render_headers(self, context):
140140
ret = {}
141141
data = render_jinja2(self.additional_headers, context)
142142
for line in data.splitlines():
143-
header, value = line.split(':')
143+
header, value = line.split(':', 1)
144144
ret[header.strip()] = value.strip()
145145
return ret
146146

0 commit comments

Comments
 (0)