Fix ESCAPE issues in multiple library files
- lib/domain-discovery.sh: Added -- to grep command (1 fix) - lib/reference-db.sh: Added -- to grep command (1 fix) - lib/user-manager.sh: Added -- to grep command (1 fix) - lib/email-functions.sh: Added -- to awk and grep commands (2 fixes) - lib/php-config-manager.sh: Added -- to grep commands (3 fixes) - lib/php-detector.sh: Added -- to grep command (1 fix) Total: 9 ESCAPE fixes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -274,12 +274,12 @@ count_by_sender() {
|
||||
local min_date="${2:-}"
|
||||
|
||||
if [ -n "$min_date" ]; then
|
||||
awk -v min_date="$min_date" '$0 >= min_date' "$log_file" | \
|
||||
awk -v min_date="$min_date" '$0 >= min_date' -- "$log_file" | \
|
||||
grep "<=" | \
|
||||
grep -oE '\<[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\>' | \
|
||||
sort | uniq -c | sort -rn
|
||||
else
|
||||
grep "<=" "$log_file" | \
|
||||
grep "<=" -- "$log_file" | \
|
||||
grep -oE '\<[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}\>' | \
|
||||
sort | uniq -c | sort -rn
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user