mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-03-08 05:31:56 +00:00
Merge pull request #2 from davidsulpy/master
Added a check to prevent an empty string root url from being accepted
This commit is contained in:
@@ -215,7 +215,7 @@ def setAccessKey() {
|
|||||||
def newAccessKey = request.JSON?.accessKey
|
def newAccessKey = request.JSON?.accessKey
|
||||||
def newGrokerRootUrl = request.JSON?.grokerRootUrl
|
def newGrokerRootUrl = request.JSON?.grokerRootUrl
|
||||||
|
|
||||||
if (newGrokerRootUrl && newGrokerRootUrl != state.grokerRootUrl) {
|
if (newGrokerRootUrl && newGrokerRootUrl != "" && newGrokerRootUrl != state.grokerRootUrl) {
|
||||||
state.grokerRootUrl = "$newGrokerRootUrl"
|
state.grokerRootUrl = "$newGrokerRootUrl"
|
||||||
state.isBucketCreated = false
|
state.isBucketCreated = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user