summaryrefslogtreecommitdiff
path: root/www/register.php
diff options
context:
space:
mode:
authorroot2014-02-17 23:41:27 +0100
committerroot2014-02-17 23:41:27 +0100
commitd955e7b3df670ec8d849b2301e217c963503462e (patch)
treeb4f1a2ee99fb7331919528e70a19877c78b89aff /www/register.php
parentcfec6f3f7711cc4a9551dedc0455e6fabf07ae48 (diff)
downloadfiles.iamfabulous.de-d955e7b3df670ec8d849b2301e217c963503462e.tar.gz
Now you can create folders without DoS
Diffstat (limited to 'www/register.php')
-rw-r--r--www/register.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/www/register.php b/www/register.php
index 5322df8..5145f04 100644
--- a/www/register.php
+++ b/www/register.php
@@ -57,7 +57,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST') {
BEGIN TRANSACTION;
UPDATE user SET name='$safe_name', salt='$salt', password='$hash_password', status=1, invites=5 WHERE email='$safe_email';
CREATE TABLE $safe_name (id INTEGER PRIMARY KEY, folder INTEGER, name TEXT, type TEXT, public TEXT);
- INSERT INTO $safe_name (id, folder, name, typ, public) VALUES (NULL, 0, '/', 'FOLDER', 'HIDDEN');
+ INSERT INTO $safe_name (id, folder, name, type, public) VALUES (NULL, 0, '/', 'FOLDER', 'HIDDEN');
COMMIT;")
){
$_SESSION["login"] = true;