Article View: be.comp.programming
Article #1935Re: [PHP]huidige mapnaam en file verplaatsen
From: Cajmere
Date: Sat, 06 Nov 2004 12:37
Date: Sat, 06 Nov 2004 12:37
31 lines
2234 bytes
2234 bytes
Op Thu, 04 Nov 2004 16:32:26 +0000, schreef John Bokma:
> TiM wrote:
>
>> Goeiedag,
>>
>> Heb voor de moment volgende problemen en hopelijk zijn er hier met wat
>> goeie wil die me daarbij willen helpen.
>> 1. Ik zou de naam van het huidige PHP-bestand dat op mijn scherm
>> staat, de naam van de map als titel hebben op mijn site, iemand enig
>> idee hoe dit kan verwezenlijkt worden?
>> 2. Ik zou een file willen verplaatsen met onderstaand stukje code,
>> maar als ik op de link Verplaats klik, kan hij de map niet terug
>> vinden naar waar het bestand moet verplaatst worden.
>>
>> Code:
>> if (isset($_GET['verplaats'])){
>> $filemove = $uploadDir.$_GET['verplaats'];
>> $movetoDir = $uploadDir.$_REQUEST['toDir']."/";
>
> Je snapt dat dit stukje code *extreem insecure* is?
ff vraagje. Waarom?
is dit omdat er geen controle is op wat er verplaatst wordt?
kwestie van iets bij te leren :-).
--
Mayday - The Religion,
In music & dance I express myself as a member of a higher community....
I have forgotten how to walk and speak and I am towards flying in the air.
Raving.
Technical Details
Message-ID:
<pan.2004.11.06.12.37.31.887519@telenet.doe_dit_weg.be>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!nntp.eutelia.it!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mailReferences:
<lbsid.11274$bH7.506911@phobos.telenet-ops.be> <Xns95976B3761953castleamber@130.133.1.4>Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,92446d64393f61ae X-Google-Attributes: gidfcea4,public X-Google-Language: DUTCH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!nntp.eutelia.it!skynet.be!skynet.be!ossa.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail From: Cajmere <tripomatic@telenet.doe_dit_weg.be> Subject: Re: [PHP]huidige mapnaam en file verplaatsen User-Agent: Pan/0.14.2.91 (As She Crawled Across the Table (Debian GNU/Linux)) Message-ID: <pan.2004.11.06.12.37.31.887519@telenet.doe_dit_weg.be> Newsgroups: be.comp.programming References: <lbsid.11274$bH7.506911@phobos.telenet-ops.be> <Xns95976B3761953castleamber@130.133.1.4> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Lines: 32 Date: Sat, 06 Nov 2004 12:37:28 GMT NNTP-Posting-Host: 213.224.104.124 X-Complaints-To: abuse@telenet.be X-Trace: phobos.telenet-ops.be 1099744648 213.224.104.124 (Sat, 06 Nov 2004 13:37:28 MET) NNTP-Posting-Date: Sat, 06 Nov 2004 13:37:28 MET Organization: Telenet Internet