Browse Source

replace references to unsafe url-regex

tags/v2.5.0
Joe 1 month ago
parent
commit
e613b916ad
Signed by: joe GPG Key ID: 8595A3F8F2CE1B74
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      server/__v1/controllers/linkController.ts
  2. +1
    -1
      server/__v1/controllers/validateBodyController.ts
  3. +1
    -1
      server/handlers/validators.ts

+ 1
- 1
server/__v1/controllers/linkController.ts View File

@@ -4,7 +4,7 @@ import { Handler } from "express";
import isbot from "isbot";
import generate from "nanoid/generate";
import URL from "url";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import { promisify } from "util";
import { deleteDomain, getDomain, setDomain } from "../db/domain";
import { addIP } from "../db/ip";


+ 1
- 1
server/__v1/controllers/validateBodyController.ts View File

@@ -3,7 +3,7 @@ import { validationResult } from "express-validator";
import { body } from "express-validator";
import { RequestHandler } from "express";
import { promisify } from "util";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import axios from "axios";
import dns from "dns";
import URL from "url";


+ 1
- 1
server/handlers/validators.ts View File

@@ -1,6 +1,6 @@
import { body, param } from "express-validator";
import { isAfter, subDays, subHours } from "date-fns";
import urlRegex from "url-regex";
import urlRegex from "url-regex-safe";
import { promisify } from "util";
import bcrypt from "bcryptjs";
import axios from "axios";


Loading…
Cancel
Save