Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

prevented creation of files outside of a folder#714

Merged
CodeDoctorDE merged 2 commits into
LinwoodDev:developfrom
MrGumpIT:improveDav
May 24, 2024
Merged

prevented creation of files outside of a folder#714
CodeDoctorDE merged 2 commits into
LinwoodDev:developfrom
MrGumpIT:improveDav

Conversation

@MrGumpIT

Copy link
Copy Markdown
Contributor

it was not possible to create a file, except inside a subfolder

@vercel

vercel Bot commented May 24, 2024

Copy link
Copy Markdown

@MrGumpIT is attempting to deploy a commit to the Linwood Team on Vercel.

A member of the Team first needs to authorize it.

@CodeDoctorDE

Copy link
Copy Markdown
Member

https://pub.dev/documentation/path/latest/path/split.html i don't understand, this should do the same?

@MrGumpIT

Copy link
Copy Markdown
Contributor Author

i add some print for test, and this is the result: Restarted application in 1.343ms.
flutter: dynamic_color: Accent color detected.
flutter: Original path: /test2.bfly
flutter: Path split using /: [, test2.bfly]
flutter: Path split using p.split: [/, test2.bfly]
flutter: Running on platform: windows
flutter: Document is cached, updating cache content.
flutter: Directory path: /
flutter: Creating request to overwrite the file at: /test2.bfly
flutter: Request URL parts: [/, test2.bfly]
flutter: Request method: PUT

@CodeDoctorDE

Copy link
Copy Markdown
Member

But the slash also exist on split. Maybe we should remove the leading slash before with an if condition?

@MrGumpIT

Copy link
Copy Markdown
Contributor Author

if I remove/it works, I remove it just for the request

@vercel

vercel Bot commented May 24, 2024

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
butterfly ✅ Ready (Inspect) Visit Preview May 24, 2024 8:29am

@vercel vercel Bot temporarily deployed to Preview – butterfly May 24, 2024 08:29 Inactive
@vercel vercel Bot temporarily deployed to Preview – butterfly-docs May 24, 2024 08:30 Inactive
@CodeDoctorDE CodeDoctorDE merged commit bc520b3 into LinwoodDev:develop May 24, 2024
@CodeDoctorDE

Copy link
Copy Markdown
Member

thanks for contributing!

@MrGumpIT MrGumpIT deleted the improveDav branch May 24, 2024 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

2 participants