While we have the hosting_path_normalize() procedure, it is not used when user submits the form, so it is still possible to enter incorrect path, like with trailing forward slash, so then the site_path may end up with double slashes in the path and cause unexpected issues when single slash in the path is assumed.

Comments

memtkmcc created an issue. See original summary.

memtkmcc’s picture

Status: Active » Needs review
StatusFileSize
new2.41 KB

Attached patch fixes the problem (also for existing platform, on its Edit form submit).

helmo’s picture

looks sane

  • memtkmcc committed ca2ef4d on 7.x-3.x
    Issue #2854498 by memtkmcc: Platform path is not sanitized as expected
    
memtkmcc’s picture

Status: Needs review » Fixed

Thanks! Committed.

memtkmcc’s picture

Assigned: memtkmcc » Unassigned

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.