Skip to content

Commit da86b7d

Browse files
committed
[HttpFoundation] Add a slightly more verbose comment about a warning on UploadedFile
1 parent e779315 commit da86b7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

File/UploadedFile.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function __construct(string $path, string $originalName, string $mimeType
7474
* Returns the original file name.
7575
*
7676
* It is extracted from the request from which the file has been uploaded.
77-
* Then it should not be considered as a safe value.
77+
* This should not be considered as a safe value to use for a file name on your servers.
7878
*
7979
* @return string
8080
*/
@@ -87,7 +87,7 @@ public function getClientOriginalName()
8787
* Returns the original file extension.
8888
*
8989
* It is extracted from the original file name that was uploaded.
90-
* Then it should not be considered as a safe value.
90+
* This should not be considered as a safe value to use for a file name on your servers.
9191
*
9292
* @return string
9393
*/

0 commit comments

Comments
 (0)