Skip to content

Commit 4c21096

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Update upload_file.rst [Contributing] Remove an unneeded toctree
2 parents 523320e + 617ac31 commit 4c21096

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

contributing/documentation/index.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,3 @@ documentation:
2020
:doc:`License </contributing/documentation/license>`
2121
Explains the details of the Creative Commons BY-SA 3.0 license used for the
2222
Symfony Documentation.
23-
24-
.. toctree::
25-
:hidden:
26-
27-
format
28-
license
29-
overview
30-
standards
31-
translations

controller/upload_file.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ There are some important things to consider in the code of the above controller:
199199
#. A well-known security best practice is to never trust the input provided by
200200
users. This also applies to the files uploaded by your visitors. The ``UploadedFile``
201201
class provides methods to get the original file extension
202-
(:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getExtension`),
202+
(:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientOriginalExtension`),
203203
the original file size (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getSize`)
204204
and the original file name (:method:`Symfony\\Component\\HttpFoundation\\File\\UploadedFile::getClientOriginalName`).
205205
However, they are considered *not safe* because a malicious user could tamper

0 commit comments

Comments
 (0)