diff options
Diffstat (limited to 'src/web/service/proxy/proxy.ts')
| -rw-r--r-- | src/web/service/proxy/proxy.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/service/proxy/proxy.ts b/src/web/service/proxy/proxy.ts index 8a45f08530..48c9fa4a53 100644 --- a/src/web/service/proxy/proxy.ts +++ b/src/web/service/proxy/proxy.ts @@ -1,11 +1,12 @@ import * as URL from 'url'; import * as express from 'express'; import * as request from 'request'; +import * as isUrl from 'is-url'; module.exports = (req: express.Request, res: express.Response) => { const url = req.params.url; - if (!url) { + if (!url || !isUrl(url)) { return; } |