new id format

This commit is contained in:
Kieran 2019-05-11 03:16:25 +08:00
parent 7846a85415
commit 9fbd5ccac1
3 changed files with 5 additions and 3 deletions

1
.gitignore vendored
View File

@ -10,3 +10,4 @@ Debug/
Release/
node_modules/
package-lock.json
out/

View File

@ -22,7 +22,8 @@
},
"homepage": "https://github.com/v0l/void.cat#readme",
"dependencies": {
"asmcrypto.js": "^2.3.2"
"asmcrypto.js": "^2.3.2",
"webpack": "^4.31.0"
},
"devDependencies": {
"saas": "^1.0.0",

View File

@ -12,7 +12,7 @@
$id = isset($_REQUEST["id"]) ? $_REQUEST["id"] : null;
if($ref === null && $id !== null) {
header("location: /#$id");
header("location: /");
} else if($id !== null) {
$this->Fs = new FileStore(Config::$Instance->upload_folder);
if($this->Fs->FileExists($id)) {