Bug #7597 Updated: similar to #5375. when filtering double slashes from file upload
| From: | sniper@php.net | Date: | Mon, 22 Oct 2001 18:24:58 +0000 |
| Subject: | Bug #7597 Updated: similar to #5375. when filtering double slashes from file upload | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-68717@lists.php.net to get a copy of this message | ||
ID: 7597
Updated by: sniper
Reported By: shensche@defcom.de
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Linux 2.2.13
PHP Version: 4.0.6RC2
New Comment:
Only bug in your scripts. Not in PHP.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2001-10-22 07:38:51] shensche@defcom.de
g'day...
sorry, i do not know anymore why i wanted to filter out the slashes. perhaps it was just a re-used
routine to filter out double slashes in URLs. i just stumbled over it and wanted to tell you. do not
worry too much about it. :)
------------------------------------------------------------------------
[2001-10-20 21:00:51] sniper@php.net
Sorry for late reply. Could you please explain WHY you
need to filter the double slashes out? It is not necessary.
--Jani
------------------------------------------------------------------------
[2001-06-05 12:49:23] shensche@defcom.de
sorry to say that but it still does not work. if replace the
double slashes, the move_uploaded_file() fun returns false
without issuing any warning. commenting out the line with
the replacement leads to the desired result. code is the
same as stated in the initial posting.
my system changed slightly (suse 6.3, linux 2.2.13, apache
1.3.9, still mysql and gd-support compiled in) but that
should not matter, should it?
cheers and thanks for your help,
sebastian
------------------------------------------------------------------------
[2001-06-03 01:09:36] sniper@php.net
This should be fixed with PHP 4.0.6, please try the
latest release candidate:
http://www.php.net/~andi/php-4.0.6RC2.tar.gz
-Jani
------------------------------------------------------------------------
[2000-11-29 07:45:29] shensche@defcom.de
of course, for example a simple echo (echo "before ereg: $src";):
before ereg: /tmp//phpTc5nNp
after ereg: /tmp/phpTc5nNp
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=7597
Edit this bug report at http://bugs.php.net/?id=7597&edit=1