wordpress-develop/tests/phpunit/tests/formatting
Gary Pendergast d258490653 When sanitizing a URL to redirect to, UTF-8 characters can be URL encoded, instead of being removed.
While RFC 3986 does not specify which character sets are allowed in URIs, Section 2.5 states that octects matching UTF-8 character encoding should be percent-encoded, then unreserved octets outside of the UTF-8 range should be percent-encoded. As browsers tend to only implement support for UTF-8 in URLs, this change only implements the UTF-8 encoding part. We may revisit the second part if it becomes an issue.

Fixes #31486



git-svn-id: https://develop.svn.wordpress.org/trunk@31587 602fd350-edb4-49c9-b593-d223f7449a82
2015-02-28 02:20:52 +00:00
..
Autop.php After [31186], remove figcaption from the list of inline elements that are autop'd in Tests_Formatting_Autop::test_that_wpautop_treats_inline_elements_as_inline(). 2015-01-16 01:50:47 +00:00
balanceTags.php Remove duplicated and superceded balance tags unit tests. 2014-01-27 02:57:51 +00:00
CleanPre.php Use @expectedDeprecated. see #25282, [25408]. 2013-09-12 18:37:32 +00:00
ConvertChars.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
date.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
ent2ncr.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
EscAttr.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
EscHtml.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
EscTextarea.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
EscUrl.php Remove failing tests related to square brackets being stripped in URL sanitizers. 2014-11-22 15:39:38 +00:00
GetUrlInContent.php Remove byte order mark (BOM) from GetUrlInContent.php. see #26171. 2014-01-23 09:49:27 +00:00
HtmlExcerpt.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
IsEmail.php Better test method name in formatting/IsEmail.php. 2014-11-19 19:31:17 +00:00
isoDescrambler.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
JSEscape.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
LikeEscape.php Fix a unit test for the now deprecated function like_escape(). 2014-06-10 01:21:33 +00:00
LinksAddTarget.php Add unit tests for links_add_target(). Alter the patterns in links_add_target() and _links_add_target() slightly based on learnings after running tests. 2013-11-22 16:24:25 +00:00
MakeClickable.php Remove failing tests related to square brackets being stripped in URL sanitizers. 2014-11-22 15:39:38 +00:00
NormalizeWhitespace.php Introduce unit tests for the normalize_whitespace() function. 2013-11-22 16:17:59 +00:00
redirect.php When sanitizing a URL to redirect to, UTF-8 characters can be URL encoded, instead of being removed. 2015-02-28 02:20:52 +00:00
RemoveAccents.php Remove certain accents in the Danish language. 2013-12-03 20:38:03 +00:00
SanitizeFileName.php In sanitize_file_name(), replace %20 and + with dashes. Remove unnecessary code from _wp_handle_upload(). 2014-07-24 22:08:09 +00:00
SanitizeMimeType.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeOrderby.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizePost.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeTextField.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeTitle.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeTitleWithDashes.php Improvements to encoded character formatting tests. 2014-11-22 19:53:37 +00:00
SanitizeTrackbackUrls.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
SanitizeUser.php Ensure sanitize_user() expected test values are lowercase on multisite. 2014-11-22 21:29:40 +00:00
SeemsUtf8.php Repair the seems_utf8() tests that use Big5 encoding. 2014-11-22 20:56:23 +00:00
Slashit.php Strip backslashes, not just forward slashes, from untrailingslashit(). 2014-03-01 21:44:43 +00:00
Smilies.php smilies_init(), treat   like whitespace when converting smilies. 2014-06-10 02:02:23 +00:00
StripSlashesDeep.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
UrlEncodedToEntities.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
Utf8UriEncode.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
wp_basename.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
WpHtmlEditPre.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
WpRichEditPre.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
WPSpecialchars.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
WPStripAllTags.php Basic unit tests and additional documentation for wp_strip_all_tags(). 2014-01-27 03:15:29 +00:00
WPTexturize.php Texturize: Add "em" as a cockney term, so that "'em" is texturized with an apostrophe, instead of an open quote. 2015-01-20 18:43:30 +00:00
WpTrimExcerpt.php Use correct notation for global functions in @covers test annotations. 2014-12-19 15:20:41 +00:00
WPTrimWords.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00
Zeroise.php Move PHPUnit tests into a tests/phpunit directory. 2013-08-29 18:39:34 +00:00