mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-21 17:06:22 +00:00
Don't allow a / in the UID to infect the path on import.
This commit is contained in:
parent
f7420b1a9b
commit
54e89d407b
@ -648,7 +648,8 @@ EOSQL;
|
||||
|
||||
$dav_data_params = $base_params;
|
||||
$dav_data_params[':user_no'] = $user_no;
|
||||
$dav_data_params[':dav_name'] = sprintf( '%s%s.ics', $path, $uid );
|
||||
// We don't allow a '/' in the UID to appear in the path, but anything else is fair game.
|
||||
$dav_data_params[':dav_name'] = sprintf( '%s%s.ics', $path, str_replace('/','',$uid) );
|
||||
$dav_data_params[':etag'] = md5($icalendar);
|
||||
$calitem_params = $dav_data_params;
|
||||
$dav_data_params[':dav_data'] = $icalendar;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user