Skip to content

Commit

Permalink
FileUpload::getName() is silently deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 20, 2020
1 parent 3b70e0c commit a2d51fa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Http/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ public function __construct(?array $value)


/**
* Returns the original file name as submitted by the browser. Do not trust the value returned by this method.
* A client could send a malicious filename with the intention to corrupt or hack your application.
* Alias for getUntrustedName()
* @deprecated use getUntrustedName()
*/
public function getName(): string
{
Expand Down

0 comments on commit a2d51fa

Please sign in to comment.