[wp-trac] [WordPress Trac] #28015: esc_url_raw (esc_url) throw "Uninitialized string offset: 0" with invalid chars
WordPress Trac
noreply at wordpress.org
Tue Apr 29 11:20:38 UTC 2014
#28015: esc_url_raw (esc_url) throw "Uninitialized string offset: 0" with invalid
chars
--------------------------+------------------------------
Reporter: mmems | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.3
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by jesin):
* version: 3.9 => 3.3
Comment:
The second patch is cleaner and does the same thing without adding
additional conditions like `empty()`.
The `substr()` function was used
[[https://core.trac.wordpress.org/browser/tags/3.2/wp-
includes/formatting.php#L2255 | before 3.2]]. Please check if the patch
works for all kinds of input.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28015#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list