[wp-trac] [WordPress Trac] #40353: Site URL and Home URL inputs are not properly validating
WordPress Trac
noreply at wordpress.org
Mon Jun 26 13:32:31 UTC 2017
#40353: Site URL and Home URL inputs are not properly validating
--------------------------------------+------------------------------
Reporter: subrataemfluence | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch | Focuses: administration
--------------------------------------+------------------------------
Comment (by swissspidy):
@umangvaghela123 As mentioned earlier in the ticket, `filter_var()` can't
be used because it could be turned off in PHP 5.2.
[attachment:40353.4.patch] looks a bit messy because it removes existing
unit tests and the regex in `is_valid_wordpress_url()` is way too complex
for this IMHO.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40353#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list