@social-mail/social-mail-web-server 1.8.394 → 1.8.395

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-web-server",
3
- "version": "1.8.394",
3
+ "version": "1.8.395",
4
4
  "description": "## Phase 1",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -93,8 +93,9 @@ export default class WebSiteContentService
93
93
  @cacheFor()
94
94
  async getFileInfo(folderID, ... segments: string[]): Promise<IFileInfo> {
95
95
  const [top, ... paths] = segments;
96
+ const eTop = top.replace(/(\%|\_)/i, (x) => "\\" + x);
96
97
  const child = await this.db.appFiles
97
- .where({ folderID, top },(p) => (x) => x.parentID === p.folderID && Sql.text.iLike(x.name, p.top))
98
+ .where({ folderID, eTop },(p) => (x) => x.parentID === p.folderID && Sql.text.iLike(x.name, p.eTop))
98
99
  .orderBy(void 0, (p) => (x) => x.isDeleted)
99
100
  .thenByDescending({ top }, (p) => (x) => x.name === p.top)
100
101
  .first();