Skip to content

feat: enforce maximum length (255 chars) on repository import input - #40

Closed
AliMahmoudDev wants to merge 1 commit into
voidswift:mainfrom
AliMahmoudDev:feat/max-length-import-input
Closed

AliMahmoudDev wants to merge 1 commit into
voidswift:mainfrom
AliMahmoudDev:feat/max-length-import-input

Conversation

@AliMahmoudDev

Copy link
Copy Markdown
Contributor

Summary

Enforces 255 character maximum on the repository import input at both client and server layers.

Changes

  • Added maxLength={255} attribute to the HTML input element
  • Added server-side length validation in importRepository action
  • Returns clear error message: "Repository name must be 255 characters or less."

Why

Without this, a malicious or accidental long string could:

  • Waste API bandwidth
  • Risk ReDoS when parsing
  • Trigger Postgres SQL error on VARCHAR(255) column

Closes #8

Add client-side and server-side validation for max 255 characters
on the repository import input to prevent database errors and
potential ReDoS attacks.

- Added maxLength=255 attribute to the HTML input
- Added server-side length check in import action
- Clear error message when limit is exceeded

Closes voidswift#8
@github-actions

Copy link
Copy Markdown

This PR has been inactive for 4 days. @maintainer @contributor please review or push updates, otherwise it will be closed in 2 days.

@github-actions github-actions Bot added the stale label Sep 14, 2026
@github-actions

Copy link
Copy Markdown

This PR was closed due to inactivity.

@github-actions github-actions Bot closed this Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce maximum length (255 chars) on repository import input

1 participant