0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-02 15:02:38 +00:00

Added input validation (allows Share ID or Share URL)

This commit is contained in:
Trevor Buckner
2025-02-13 00:05:30 -05:00
parent 1aed753911
commit f326d11232
4 changed files with 22 additions and 9 deletions

View File

@@ -552,6 +552,7 @@ const renderPage = async (req, res)=>{
const configuration = {
local : isLocalEnvironment,
publicUrl : config.get('publicUrl') ?? '',
baseUrl : `${req.protocol}://${req.get('host')}`,
environment : nodeEnv,
deployment : config.get('heroku_app_name') ?? ''
};