Skip to content

Commit

Permalink
Sanitize Cassandra version before use it
Browse files Browse the repository at this point in the history
Signed-off-by: Ruben Vargas <[email protected]>
  • Loading branch information
rubenvp8510 committed Jan 23, 2025
1 parent 3cfff2d commit 96ec6f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/storage/cassandra/schema/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function usage {
trace_ttl=${TRACE_TTL:-172800}
dependencies_ttl=${DEPENDENCIES_TTL:-0}
cas_version=${VERSION:-4}

cas_version=$(echo "$cas_version" | tr -cd '0-9')
template=$1
if [[ "$template" == "" ]]; then
case "$cas_version" in
Expand Down

0 comments on commit 96ec6f4

Please sign in to comment.