Skip to content

Harden search regex error handling in Student Wiki - #1

Open
hashmapr wants to merge 1 commit into
Purdue-CSUSB:mainfrom
hashmapr:harden-search-regex-handling
Open

Harden search regex error handling in Student Wiki#1
hashmapr wants to merge 1 commit into
Purdue-CSUSB:mainfrom
hashmapr:harden-search-regex-handling

Conversation

@hashmapr

@hashmapr hashmapr commented Jul 2, 2026

Copy link
Copy Markdown
  • Add try/catch to toRegex for parity with buildPhrase's existing guard
  • Guard call sites against null regex return
  • Cap search input length to 200 chars as defense-in-depth

- Add try/catch to toRegex for parity with buildPhrase's existing guard
- Guard call sites against null regex return
- Cap search input length to 200 chars as defense-in-depth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant