-
Notifications
You must be signed in to change notification settings - Fork 0
ALL #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ALL #69
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,7 +11,7 @@ const profileRoutes = async (fastify: FastifyInstance) => { | |||||
| lastName: { type: 'string', minLength: 1, maxLength: 50, pattern: '[a-zA-Z-\' ]' }, | ||||||
| email: { type: 'string', format: 'email' }, | ||||||
| bio: { type: 'string', minLength: 50, maxLength: 500 }, | ||||||
| tags: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 30, pattern: '[a-zA-Z_]' }, minItems: 3 }, | ||||||
| tags: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 30 }, minItems: 3 }, | ||||||
|
||||||
| tags: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 30 }, minItems: 3 }, | |
| tags: { type: 'array', items: { type: 'string', minLength: 1, maxLength: 30, pattern: '^[^"\'<>[\\]{}()]*$' }, minItems: 3 }, |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,6 +1,6 @@ | ||||||
| "use client"; | ||||||
|
|
||||||
| import { useState, useMemo, useCallback, useEffect } from "react"; | ||||||
| import { useState, useMemo, useCallback, useEffect, use } from "react"; | ||||||
|
||||||
| import { useState, useMemo, useCallback, useEffect, use } from "react"; | |
| import { useState, useMemo, useCallback, useEffect } from "react"; |
Copilot
AI
Jan 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable isLiking.
| const { likeUser, isLiking } = useLikeUser(); | |
| const { likeUser } = useLikeUser(); |
Copilot
AI
Jan 2, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable isPassing.
| const { passUser, isPassing } = usePassUser(); | |
| const { passUser } = usePassUser(); |
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -24,6 +24,8 @@ export default function ProfileCard({ | |||||||
| {/* Image */} | ||||||||
| <div className="relative aspect-3/4 w-full overflow-hidden"> | ||||||||
| <Image | ||||||||
| width={48} | ||||||||
| height={48} | ||||||||
|
Comment on lines
+27
to
+28
|
||||||||
| width={48} | |
| height={48} | |
| fill |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pattern validation for tags has been removed, which now allows any characters including special characters, numbers, and spaces. While this enables internationalization (e.g., accented characters like "Café"), it may also allow potentially problematic input like SQL injection attempts or XSS payloads. Consider adding a more permissive but still secure pattern that allows alphanumeric characters, spaces, and common international characters while blocking potentially dangerous characters like quotes, brackets, or HTML tags.