php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4866 file upload misbehaved variables
Submitted: 2000-06-07 15:16 UTC Modified: 2000-07-26 07:30 UTC
From: pmm at uninova dot pt Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0.0 Release OS: Windows 98
Private report: No CVE-ID: None
 [2000-06-07 15:16 UTC] pmm at uninova dot pt
$userfile_name and $userfile present double back slashes in Windows 98/PWS/ISAPI.

Example:

<?php echo $userfile; ?>

presents:
C:\\WINDOWS\\TEMP\\php57

should present:
C:\WINDOWS\TEMP\php57

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-26 07:30 UTC] zak@php.net
AFAIK this behavior is correct.  The first backslash escapes the special meaning of the second backslash when the variable is used within a context where backslash escape sequences are interpreted.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 16:01:30 2024 UTC