{
"event": "PreToolUse",
"tool_name": "Bash",
"tool_input": {
"command": "cd \/var\/www\/dev.campus.systemische-tools.de\/src\/View && echo \"=== HTMX POST\/PUT\/DELETE\/PATCH ohne CSRF ===\" && grep -rn \"hx-post\\|hx-put\\|hx-delete\\|hx-patch\" --include=\"*.php\" | while read line; do file=$(echo \"$line\" | cut -d: -f1); linenum=$(echo \"$line\" | cut -d: -f2); nextline=$((linenum + 1)); nextcontent=$(sed -n \"${nextline}p\" \"$file\" 2>\/dev\/null); if ! echo \"$nextcontent\" | grep -q \"CSRF\"; then sameline=$(echo \"$line\" | cut -d: -f3-); if ! echo \"$sameline\" | grep -q \"CSRF\"; then echo \"$line\"; fi; fi; done",
"description": "Find HTMX elements without CSRF headers"
}
}