Changeset 52393 for trunk/src/wp-includes/SimplePie/Misc.php
- Timestamp:
- 12/20/2021 07:31:37 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/SimplePie/Misc.php
r49176 r52393 2261 2261 // No-op 2262 2262 } 2263 2264 /** 2265 * Sanitize a URL by removing HTTP credentials. 2266 * @param string $url the URL to sanitize. 2267 * @return string the same URL without HTTP credentials. 2268 */ 2269 public static function url_remove_credentials($url) 2270 { 2271 return preg_replace('#^(https?://)[^/:@]+:[^/:@]+@#i', '$1', $url); 2272 } 2263 2273 }
Note: See TracChangeset
for help on using the changeset viewer.