Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ jobs:
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
# Inline (not config-file) because init runs in parallel with
# checkout. Test files are not shipped and only add noise.
config: |
paths-ignore:
- '**/*.test.ts'
- '**/*.test.tsx'
- 'cypress/**'

- name: Autobuild
uses: github/codeql-action/autobuild@v4.39.3
Expand Down
2 changes: 1 addition & 1 deletion src/components/ResetPassword/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const ResetPassword = () => {
validationSchema={ResetSchema}
onSubmit={async (values) => {
const response = await axios.post(
`/api/v1/auth/reset-password/${guid}`,
`/api/v1/auth/reset-password/${encodeURIComponent(String(guid))}`,
{
password: values.password,
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/collection/[collectionId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getServerSideProps: GetServerSideProps<
CollectionPageProps
> = async (ctx) => {
const response = await axios.get<Collection>(
`http://${getHostAndPort()}/api/v1/collection/${ctx.query.collectionId}`,
`http://${getHostAndPort()}/api/v1/collection/${encodeURIComponent(String(ctx.query.collectionId))}`,
{
headers: ctx.req?.headers?.cookie
? { cookie: ctx.req.headers.cookie }
Expand Down
2 changes: 1 addition & 1 deletion src/pages/movie/[movieId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getServerSideProps: GetServerSideProps<MoviePageProps> = async (
ctx
) => {
const response = await axios.get<MovieDetailsType>(
`http://${getHostAndPort()}/api/v1/movie/${ctx.query.movieId}`,
`http://${getHostAndPort()}/api/v1/movie/${encodeURIComponent(String(ctx.query.movieId))}`,
{
headers: ctx.req?.headers?.cookie
? { cookie: ctx.req.headers.cookie }
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tv/[tvId]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getServerSideProps: GetServerSideProps<TvPageProps> = async (
ctx
) => {
const response = await axios.get<TvDetailsType>(
`http://${getHostAndPort()}/api/v1/tv/${ctx.query.tvId}`,
`http://${getHostAndPort()}/api/v1/tv/${encodeURIComponent(String(ctx.query.tvId))}`,
{
headers: ctx.req?.headers?.cookie
? { cookie: ctx.req.headers.cookie }
Expand Down