chmod 0700 db directory

This commit is contained in:
trax 2014-02-15 12:16:06 +01:00
parent 2945960433
commit 5b784858d3

View file

@ -15,7 +15,7 @@ if(!empty($_GET['url'])) {
$hashfolderpath = './db/' . $hashfolder;
$hashfilepath = $hashfolderpath . '/' . $hashfile;
mkdir($hashfolderpath, 0775, true);
mkdir($hashfolderpath, 0700, true);
file_put_contents($hashfilepath, $url);
echo '<a href="./?'.$urlhash.'">./?'.$urlhash.'</a><br />';