I might get to submitting a patch later, but here's a quick report for now.
// Remove the target attribute if the default (no target) is selected.
if (empty($item['attributes']) || $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
unset($item['attributes']['target']);
}
Should be something like:
// Remove the target attribute if the default (no target) is selected.
if (empty($item['attributes']) || isset($item['attributes']['target']) && $item['attributes']['target'] == LINK_TARGET_DEFAULT) {
unset($item['attributes']['target']);
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | link-undefined_index_target_in_link_sanitize-1458502-1.patch | 556 bytes | eugene.brit |
Comments
Comment #1
eugene.britHere is the patch.
Comment #2
berdyshev commentedit's RTBC for me
Comment #3
jcfiala commentedMerged!