8000 minor #51370 [HttpFoundation] Add a slightly more verbose comment abo… · PhilETaylor/symfony@400ee5c · GitHub
[go: up one dir, main page]

Skip to content

Commit 400ee5c

Browse files
committed
minor symfony#51370 [HttpFoundation] Add a slightly more verbose comment about a warning on UploadedFile (fabpot)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpFoundation] Add a slightly more verbose comment about a warning on UploadedFile | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a | License | MIT | Doc PR | n/a Refs symfony#49283 Commits ------- 28451b2 [HttpFoundation] Add a slightly more verbose comment about a warning on UploadedFile
2 parents 8ff7d61 + 28451b2 commit 400ee5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/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)
0