[wp-trac] [WordPress Trac] #31777: sanitize_text_field() stripping instances "%ca"
WordPress Trac
noreply at wordpress.org
Thu Mar 26 20:20:50 UTC 2015
#31777: sanitize_text_field() stripping instances "%ca"
---------------------------+-----------------------------
Reporter: lieutenantdan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.1.1
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
Forgive me if this isn't a bug, however I believe it is. But when you try
to sanitize the string "%category%" with the WordPress native function
'''sanitize_text_field()''' it will strip the "%ca" leaving the string
"tegory%". Maybe this is a security precaution but it seems like something
that should be fixed.
I found this while trying to simulate the custom permalink options in my
own custom option and noticed anything containing "%ca" is removed.
Thanks for your time.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31777>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list