wp_sanitize_redirect [ WordPress Function ]
wp_sanitize_redirect ( $location )
| Returns: |
|
| Defined at: |
|
Benzer Fonksiyonlar: wp_safe_redirect, wp_validate_redirect, wp_redirect, sanitize_user_object, wpmu_admin_do_redirect
Sanitizes a URL for use in a redirect.
Source
<?php
function wp_sanitize_redirect($location) {
$location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location);
$location = wp_kses_no_null($location);
// remove %0d and %0a from location
$strip = array('%0d', '%0a', '%0D', '%0A');
$location = _deep_replace($strip, $location);
return $location;
}
?>
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/wp sanitize redirect « WordPress Codex
Codex tools: Log in. Function Reference/wp sanitize redirect. Contents. 1 Description; 2 Parameters; 3 Return Values; 4 Change Log; 5 Source File. Description ...
codex.wordpress.org - #17052 (wp_sanitize_redirect() removes square brackets from URL ...
The function wp_sanitize_redirect() removes square brackets from URLs. PHP's functionality with arrays in the URL require square braces, stripping them from ...
core.trac.wordpress.org - wp_sanitize_redirect
Function and Method Cross Reference. wp_sanitize_redirect(). Defined at: /wp- includes/pluggable.php -> line 886. Referenced 2 times: ...
phpxref.ftwr.co.uk - wp_sanitize_redirect | A HitchHackers guide through WordPress
Feb 12, 2011 ... Source code. function wp_sanitize_redirect($location) { $location = preg_replace ('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location); $location ...
hitchhackerguide.com