[wp-trac] [WordPress Trac] #23307: shortcode_parse_atts may return empty string
WordPress Trac
noreply at wordpress.org
Thu Feb 20 11:48:14 UTC 2014
#23307: shortcode_parse_atts may return empty string
------------------------------------------+------------------
Reporter: GaryJ | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: Shortcodes | Version:
Severity: minor | Resolution:
Keywords: needs-unit-tests needs-patch | Focuses:
------------------------------------------+------------------
Comment (by TobiasBg):
Replying to [comment:11 GaryJ]:
> If the string is empty (i.e. `[foobar]`), then my attached patch already
ensures an empty array is returned.
> What that last suggestion covers is the edge case when some non-empty
string fails the regex.
Ah, ok. Thanks for the clarification.
Without having actually tested your patch: What happens for `[foobar ]` or
`[foobar /]`?
And do you happen to have an example where the regex would fail for a non-
empty string? I couldn't find one yet.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23307#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list