Page MenuHomePhorge

No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
diff --git a/RELEASE-NOTES-1.44 b/RELEASE-NOTES-1.44
index 0c9d7633b35..609ef189e0e 100644
--- a/RELEASE-NOTES-1.44
+++ b/RELEASE-NOTES-1.44
@@ -708,6 +708,8 @@ because of Phabricator reports.
- Only pass an array to $params or $wikiTags
- SiteConfiguration::siteFromDB
- Only pass a string to $wiki
+* UserMailer::sanitizeHeaderValue emits deprecation warnings. This function
+ is no longer used within core/extensions. No replacement is provided.
* …
=== Other changes in 1.44 ===
diff --git a/includes/mail/UserMailer.php b/includes/mail/UserMailer.php
index da1fd049277..000f0697374 100644
--- a/includes/mail/UserMailer.php
+++ b/includes/mail/UserMailer.php
@@ -451,8 +451,11 @@ class UserMailer {
* Strips bad characters from a header value to prevent PHP mail header injection attacks
* @param string $val String to be sanitized
* @return string
+ * @deprecated in 1.44. No replacement is provided as this
+ * function is unused per codesearch.
*/
public static function sanitizeHeaderValue( $val ) {
+ wfDeprecated( __METHOD__, '1.44' );
return strtr( $val, [ "\r" => '', "\n" => '' ] );
}

File Metadata

Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (8 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227519
Default Alt Text
(1 KB)

Event Timeline