Showing 1 of 1 files from the diff.

@@ -630,25 +630,31 @@
Loading
630 630
  shellspec_list_envkeys_callback "${1%%[=]*}"
631 631
}
632 632
633 -
# Sanitize to reduce security risk when environment variable name
633 +
# Sanitize to avoid security risk when environment variable name
634 634
# contains meta characters
635 635
#
636 636
# e.g.
637 637
# $ env 'FOO; echo bad; # =aaa' ksh -c 'export -p | grep FOO'
638 638
# export FOO; echo bad; # =aaa
639 639
shellspec_list_envkeys_sanitize() {
640 -
  set -- "$1" "$2;" ""
641 -
  while [ "$2" ]; do
642 -
    set -- "$1" "${2#*[;!#~<>[*?&]}" "${3}${2%%[;!#~<>[*?&]*}_"
643 -
  done
644 -
  eval "$1=\${3%_}"
640 +
  eval "$1=\$2"
641 +
  shellspec_replace_all "$1" '!' '_'
642 +
  shellspec_replace_all "$1" '#' '_'
643 +
  shellspec_replace_all "$1" '&' '_'
645 644
  shellspec_replace_all "$1" '(' '_'
646 645
  shellspec_replace_all "$1" ')' '_'
647 -
  shellspec_replace_all "$1" '`' '_'
648 -
  shellspec_replace_all "$1" '|' '_'
646 +
  shellspec_replace_all "$1" '*' '_'
647 +
  shellspec_replace_all "$1" ';' '_'
648 +
  shellspec_replace_all "$1" '<' '_'
649 +
  shellspec_replace_all "$1" '>' '_'
650 +
  shellspec_replace_all "$1" '?' '_'
651 +
  shellspec_replace_all "$1" '[' '_'
649 652
  shellspec_replace_all "$1" ']' '_'
653 +
  shellspec_replace_all "$1" '`' '_'
650 654
  shellspec_replace_all "$1" '{' '_'
655 +
  shellspec_replace_all "$1" '|' '_'
651 656
  shellspec_replace_all "$1" '}' '_'
657 +
  shellspec_replace_all "$1" '~' '_'
652 658
}
653 659
654 660
shellspec_exists_envkey() {
Files Coverage
lib 79.75%
libexec 20.97%
install.sh 53.10%
shellspec 0.00%
Project Totals (99 files) 66.26%
882.6
TRAVIS_OS_NAME=osx
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 30%
6
    patch: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading