Skip to content

Commit 713d1cf

Browse files
authored
Merge pull request #126 from easycoder/dev
Bug fixes
2 parents 23037f4 + 9095574 commit 713d1cf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

iwsy/resources/ecs/fileman.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ Show:
124124

125125
get UserRecord from storage as `.user`
126126
put property `email` of UserRecord into Email
127-
get Password from storage as `password`
127+
get Password from storage as `user.password`
128128
put property `home` of UserRecord into Home
129-
put Home cat `/` cat property `id` of UserRecord cat `images` into Home
130-
put `users/` cat Home cat `/images` into Home
129+
put Home cat `/` cat property `id` of UserRecord cat `/images` into Home
130+
put `users/` cat Home into Home
131131
get CurrentPath from storage as `.filepath`
132132
if CurrentPath is empty put Home into CurrentPath
133133

@@ -137,7 +137,8 @@ Browser:
137137
rest get Content from `ulist/` cat Email cat `/` cat Password cat `/` cat CurrentPath cat `?v=` cat now
138138
or begin
139139
alert `Failed to list files.`
140-
stop
140+
put empty into storage as `.filepath`
141+
go to Show
141142
end
142143
put CurrentPath into Path
143144
set the content of Location to `Current path: ` cat Path

iwsy/rest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
case 'validate':
104104
// Validate a hash
105105
// Endpoint: {site root}/rest.php/validate/{encrypted-value}/{value-to-validate}
106-
print password_verify($request[1], $request[0]) ? 'yes' : 'no';
106+
print password_verify($request[1], str_replace('~', '/', $request[0])) ? 'yes' : 'no';
107107
exit;
108108
}
109109
break;

0 commit comments

Comments
 (0)