Skip to content

Commit

Permalink
issue #286
Browse files Browse the repository at this point in the history
fixed: broken public accounts
  • Loading branch information
[email protected] authored and [email protected] committed Jul 30, 2022
1 parent bf763a1 commit d6ade1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CloudMailRu.pas
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,9 @@ function TCloudMailRu.getSharedFileUrl(remotePath: WideString; ShardType: WideSt
usedShard := self.public_shard
else
self.getShard(usedShard, ShardType);
if (self.public_account) then {для}
exit(IncludeSlash(usedShard) + IncludeSlash(self.public_link) + PathToUrl(remotePath, true, true));

if (ExtractRealPath(remotePath).isDir) then {для ссылок внутри каталогов перебираются файлы внутри «публичной ссылки» на каталог}
begin
result := IncludeSlash(usedShard) + self.public_link + PathToUrl(remotePath, true, true);
Expand Down

0 comments on commit d6ade1f

Please sign in to comment.