From: mstaiger at informatik dot uni-siegen dot de Operating system: win 2k server PHP version: 4.3.7 PHP Bug Type: HTTP related Bug description: name of file upload cutted in php4.3.7
Description: ------------ The typical file-upload HTML-command: <input type="file" size=50 name="userfile"> creates an input field to pick a file from the local machine. We used to "abuse" this field also to insert URLs instead of physical filenames which worked fine so far. When entered "http://www.somedomain.com" the php variable $_FILES['userfile']['name'] contained the entire URL : "http://www.somedomain.com" Now, the new version seems to cut everything before the last slash and $_FILES['userfile']['name'] contains only "www.somedomain.com", without "http://" . We could not find any documentation for this behaviour and doubt that this behaviour was desired? -- Edit bug report at http://bugs.php.net/?id=28802&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28802&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28802&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28802&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28802&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28802&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28802&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28802&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28802&r=support Expected behavior: http://bugs.php.net/fix.php?id=28802&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28802&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28802&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28802&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28802&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28802&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28802&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28802&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28802&r=float
