Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2011-08-04 21:44:22 +0400
committerMichal Čihař <michal@cihar.com>2011-08-04 21:44:22 +0400
commit9a938ed9867317474ae4bb63a17270c34040d2b5 (patch)
tree3996857fff6ab4c3fcc6b06ae76ed08d52836f16 /file_echo.php
parent872ddd034ff325e88caef9b8863bc5fa49734456 (diff)
Fix comments
Diffstat (limited to 'file_echo.php')
-rw-r--r--file_echo.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/file_echo.php b/file_echo.php
index 58ff86bdb5..37d9a02c67 100644
--- a/file_echo.php
+++ b/file_echo.php
@@ -28,10 +28,10 @@ if (isset($_REQUEST['filename']) && isset($_REQUEST['image'])) {
$valid_match = '/^[^\n\r]*\.' . $extension . '$/';
if (! preg_match($valid_match, $_REQUEST['filename'])) {
if (! preg_match('/^[^\n\r]*$/', $_REQUEST['filename'])) {
- /* Add extension */
+ /* Filename is unsafe, discard it */
$filename = 'dowload.' . $extension;
} else {
- /* Filename is unsafe, discard it */
+ /* Add extension */
$filename = $_REQUEST['filename'] . '.' . $extension;
}
} else {