🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.php
Article #230875

Re: MultiUpload pliku o nazwie ---.png

#230875
From: Borys Pogoreło
Date: Wed, 21 Jan 2015 16:47
26 lines
1602 bytes
Dnia Tue, 20 Jan 2015 21:35:39 -0800 (PST), jivanmukta@poczta.onet.pl
napisał(a):

> 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.

I ten plik istnieje w momencie wywołania skryptu? Co jest w tej zmiennej?

> Miałym modyfikować kod CodeIgnitera? Może jednak lepiej nie akceptować nazwy ---?

I będziesz blokował każdą możliwą kombinację nietypowych znaków?

-- 
Borys Pogoreło
borys(#)leszno,edu,pl
Technical Details
Message-ID: <l25ekdal4sbn$.cepbe0o6oeo3.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mail
References: <a87f13f3-fd8c-4302-b6fb-3f0ea32090d1@googlegroups.com> <b0678784-8884-4be9-9789-5b2a75635ef5@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.promontel.net.pl!not-for-mail
From: Borys Pogoreło <borys@pl.edu.leszno>
Newsgroups: pl.comp.lang.php
Subject: Re: MultiUpload pliku o nazwie ---.png
Date: Wed, 21 Jan 2015 17:47:30 +0100
Organization: snafu
Lines: 26
Message-ID: <l25ekdal4sbn$.cepbe0o6oeo3.dlg@40tude.net>
References: <a87f13f3-fd8c-4302-b6fb-3f0ea32090d1@googlegroups.com> <b0678784-8884-4be9-9789-5b2a75635ef5@googlegroups.com>
NNTP-Posting-Host: azs138.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: thunar.promontel.net.pl 1421858828 32188 83.27.156.138 (21 Jan 2015 16:47:08 GMT)
X-Complaints-To: abuse@promontel.net.pl
NNTP-Posting-Date: Wed, 21 Jan 2015 16:47:08 +0000 (UTC)
User-Agent: 40tude_Dialog/2.0.14.1pl
X-fnord: obey.
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit