Skip to content

Commit e2d2a45

Browse files
committed
Create handle on non sanitized value
We must never create handle on sanitized value since it will create weird stuff. The creatHandle() function good to deal with un-sanitized data since it will remove anything that is dangerous. Fixes #82
1 parent 94d08f1 commit e2d2a45

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fields/field.selectbox_link.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ public function appendFormattedElement(XMLElement &$wrapper, $data, $encode = fa
625625

626626
$item = new XMLElement('item');
627627
$item->setAttribute('id', $relation['id']);
628-
$item->setAttribute('handle', Lang::createHandle($relation['value']));
628+
$item->setAttribute('handle', Lang::createHandle(General::reverse_sanitize($relation['value'])));
629629
$item->setAttribute('section-handle', $relation['section_handle']);
630630
$item->setAttribute('section-name', General::sanitize($relation['section_name']));
631631
$item->setValue($relation['value']);

0 commit comments

Comments
 (0)