]> jfr.im git - uguu.git/commitdiff
Update core.php
authorEric Johansson (neku) <redacted>
Wed, 11 Feb 2015 02:51:17 +0000 (03:51 +0100)
committerEric Johansson (neku) <redacted>
Wed, 11 Feb 2015 02:51:17 +0000 (03:51 +0100)
core.php

index 3cc509bd81fb6253f75025a7c85a6e7b5f684196..118928583620f8237cf38394f1d706849f0b2ae2 100644 (file)
--- a/core.php
+++ b/core.php
@@ -4,7 +4,7 @@ function save_file ($file, $name){
     $path='/home/neku/www/files/';
     //Generate prefix, put together name and remove tags/whitespace
     $file_name = strip_tags(preg_replace('/\s+/', '', $name));
-    $file_name = gen_name(file_name);
+    $file_name = gen_name($file_name);
     while(file_exists($path.$file_name)){
         $file_name = gen_name(file_name);
     }