Closed (fixed)
Project:
Link
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2012 at 09:51 UTC
Updated:
18 Feb 2013 at 05:40 UTC
Jump to comment: Most recent file
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!