- Fix critical JSON injection vulnerability by properly escaping clipboard content using jq
- Add content length limiting (2000 chars) to prevent overflow attacks
- Use proper JSON payload construction with jq to ensure safe API calls
- Add silent curl flag and error handling for reliability
This addresses a security issue where malicious clipboard content could break
out of JSON strings and potentially execute arbitrary code.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
## Problem
The previous script didnt take into account for relative workspaces, and my previous pull request was... bad.
## Fix
Added smart branching to detect if the target is a literal number(1,2,90), or a relative number(+1, -20) or a string target.
## Bugs
None. ive been stress testing it since the last 2 days,