mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: S3 buckets' regular expression wasn't strict enough
This commit is contained in:
parent
d7d8df7d3a
commit
545a2355a2
1 changed files with 4 additions and 4 deletions
|
@ -231,10 +231,10 @@ login:
|
||||||
default: false
|
default: false
|
||||||
twitter_consumer_key:
|
twitter_consumer_key:
|
||||||
default: ''
|
default: ''
|
||||||
regex: "^[a-zA-Z0-9_+-]+$"
|
regex: "^[\\w+-]+$"
|
||||||
twitter_consumer_secret:
|
twitter_consumer_secret:
|
||||||
default: ''
|
default: ''
|
||||||
regex: "^[a-zA-Z0-9_+-]+$"
|
regex: "^[\\w+-]+$"
|
||||||
enable_instagram_logins:
|
enable_instagram_logins:
|
||||||
client: true
|
client: true
|
||||||
default: false
|
default: false
|
||||||
|
@ -625,7 +625,7 @@ files:
|
||||||
enum: 'S3RegionSiteSetting'
|
enum: 'S3RegionSiteSetting'
|
||||||
s3_upload_bucket:
|
s3_upload_bucket:
|
||||||
default: ''
|
default: ''
|
||||||
regex: '^[^A-Z_.]+$' # can't use '.' when using HTTPS
|
regex: "^[a-z0-9-]+$" # can't use '.' when using HTTPS
|
||||||
s3_cdn_url:
|
s3_cdn_url:
|
||||||
default: ''
|
default: ''
|
||||||
regex: '^https?:\/\/.+[^\/]$'
|
regex: '^https?:\/\/.+[^\/]$'
|
||||||
|
@ -930,7 +930,7 @@ backups:
|
||||||
shadowed_by_global: true
|
shadowed_by_global: true
|
||||||
s3_backup_bucket:
|
s3_backup_bucket:
|
||||||
default: ''
|
default: ''
|
||||||
regex: "^[^A-Z_.]+$" # can't use '.' when using HTTPS
|
regex: "^[a-z0-9-]+$" # can't use '.' when using HTTPS
|
||||||
shadowed_by_global: true
|
shadowed_by_global: true
|
||||||
s3_disable_cleanup:
|
s3_disable_cleanup:
|
||||||
default: false
|
default: false
|
||||||
|
|
Loading…
Reference in a new issue