Fix subdirectory path support for starter_code files#695
Conversation
|
Someone is attempting to deploy a commit to the komalsony234-1530's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Program: GSSoC |
|
Hi maintainers! This PR fixes subdirectory path support for starter_code files so challenges in nested directories can find their starter code correctly. Would appreciate a review. Thank you! |
|
Thank you for the contribution. I reviewed the changes and verified that the previous implementation discarded subdirectory information by using only the basename of the configured starter file path. This caused starter files stored in nested folders to fail resolution. The updated implementation preserves relative subdirectory paths while still restricting file access to the configured STARTER_CODE_DIR, which addresses the reported issue without changing unrelated behavior. The approach is focused, solves a real backend bug, and maintains the existing safety checks around file resolution. Please rebase the branch and resolve the current merge conflicts. Once that is done, this looks ready to merge. |
Summary