Add check to verify extracted zip paths are within project directory.

This commit is contained in:
Chad Curtis committed 2025-09-25 02:42:46 +00:00
1 parent 5e352e60e9
commit ce4a602270
3 files changed
+151 -11

No files matched your search

+2 -1
View File
@@ -261,12 +261,13 @@ export default function Index() {
navigate(`/project/${project.id}?${searchParams.toString()}`);
} catch (error) {
console.error('Failed to create project:', error);
checkForKeyFailure(error) ||
if (!checkForKeyFailure(error)) {
toast({
title: "Project Creation Failed",
description: error instanceof Error ? error.message : "An unexpected error occurred",
variant: "destructive",
});
}
} finally {
setIsCreating(false);
}