Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F585090
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Jul 5, 5:32 AM (15 h, 21 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
227519
Default Alt Text
(1 KB)
Attached To
Mode
rMW mediawiki
Attached
Detach File
Event Timeline
Log In to Comment