Skip to content

Commit 97118ad

Browse files
authored
Merge pull request caprover#1502 from thgh/trim-customdomain
Trim the customdomain before adding it
2 parents 7ea53bb + 45154bd commit 97118ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/user/apps/appdefinition/AppDefinitionRouter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ router.post('/customdomain/', function (req, res, next) {
126126
InjectionExtractor.extractUserFromInjected(res).user.serviceManager
127127

128128
const appName = req.body.appName
129-
const customDomain = (req.body.customDomain || '').toLowerCase()
129+
const customDomain = (req.body.customDomain || '').toLowerCase().trim()
130130

131131
// verify customdomain.com going through the default NGINX
132132
// Add customdomain.com to app in Data Store

0 commit comments

Comments
 (0)