Article View: pl.comp.lang.php
Article #230874Re: MultiUpload pliku o nazwie ---.png
From: jivanmukta
Date: Wed, 21 Jan 2015 05:35
Date: Wed, 21 Jan 2015 05:35
14 lines
1639 bytes
1639 bytes
Oto system/libraries/Upload.php:
605 $image_types = array('gif', 'jpg', 'jpeg', 'png', 'jpe');
606
607 if (in_array($ext, $image_types))
608 {
609 if (getimagesize($this->file_temp) === FALSE)
610 {
611 return FALSE;
612 }
613 }
$this->file_temp wskazuje na pewien plik z katalogu /tmp.
Miałym modyfikować kod CodeIgnitera? Może jednak lepiej nie akceptować nazwy ---?
Technical Details
Message-ID:
<b0678784-8884-4be9-9789-5b2a75635ef5@googlegroups.com>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!bm13no1960780qab.0!news-out.google.com!l7ni1qai.0!nntp.google.com!v8no2478303qal.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<a87f13f3-fd8c-4302-b6fb-3f0ea32090d1@googlegroups.com>Show Full Headers
Complete Article Headers
X-Received: by 10.52.6.161 with SMTP id c1mr30004406vda.5.1421818539856; Tue, 20 Jan 2015 21:35:39 -0800 (PST) X-Received: by 10.140.31.134 with SMTP id f6mr1541qgf.33.1421818539734; Tue, 20 Jan 2015 21:35:39 -0800 (PST) Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!bm13no1960780qab.0!news-out.google.com!l7ni1qai.0!nntp.google.com!v8no2478303qal.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: pl.comp.lang.php Date: Tue, 20 Jan 2015 21:35:39 -0800 (PST) In-Reply-To: <a87f13f3-fd8c-4302-b6fb-3f0ea32090d1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=89.73.80.243; posting-account=Fd8BNwoAAACl8PCi6-fI0bkHGOgt6LMa NNTP-Posting-Host: 89.73.80.243 References: <a87f13f3-fd8c-4302-b6fb-3f0ea32090d1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <b0678784-8884-4be9-9789-5b2a75635ef5@googlegroups.com> Subject: Re: MultiUpload pliku o nazwie ---.png From: jivanmukta@poczta.onet.pl Injection-Date: Wed, 21 Jan 2015 05:35:39 +0000 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit