Bugsalert.com
Security News about Viruses, Spyware,
Trojans, Malware, XSS attacks.

fgetcsv closure missbehaves when using '§' as closure

BugsAlert Home > fgetcsv closure missbehaves when using '§' as closure
 
 

Description: ------------ I was using '§' as closure, since this was the only character I fairly didn't even expect to encounter, without having to use any escaping. It does not work. It will always add an additional trailing '§' on the data received. Reproduce code: --------------- --- reproduce.php ---

ERROR: Unable to read data.'; exit; } while (($data = fgetcsv($handle, 1000, ',', '§')) !== FALSE) { echo ""; echo ""; echo ""; } fclose($handle); ?>
$data[0]$data[1]$data[2]
----------------- --- data --- abm, §anjn an§, aaa abm, anjn an, aaa ----------------- Expected result: ---------------- abm | anjn an | aaa abm | anjn an | aaa Actual result: -------------- abm | anjn an§ | aaa abm | anjn an | aaa




Original Source: http://bugs.php.net/49168

Learn more about fgetcsv closure missbehaves when using '§' as closure
 
Tags: fgetcsv closure missbehaves closure

Related Items

      Vuln: phpMyAdmin Shared Host Remote Information Disclosure Vulnerability

      return value should note FALSE

      CVE-2008-4774 (questcms)

      Bugtraq: [USN-924-1] Kerberos vulnerabilities

      Rob Campbell: Inspector Landing

      Joomla Component xsstream-dm 0.01 Beta SQL Injection

      Vuln: Ocean12 FAQ Manager Pro 'id' Parameter SQL Injection Vulnerability

 

Pixel