mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-22 17:16:06 +00:00
Force casting to text on setting DAV properties.
This commit is contained in:
parent
6cca907ecf
commit
3564645227
@ -201,7 +201,7 @@ if ( ! $qry->QDo( 'INSERT INTO collection ( user_no, parent_container, dav_name,
|
||||
$request->DoResponse( 500, translate('Error writing calendar details to database.') );
|
||||
}
|
||||
foreach( $dav_properties AS $k => $v ) {
|
||||
if ( ! $qry->QDo('SELECT set_dav_property( :dav_name, :user_no, :tag, :value )',
|
||||
if ( ! $qry->QDo('SELECT set_dav_property( :dav_name, :user_no, :tag::text, :value::text )',
|
||||
array( ':dav_name' => $request->path, ':user_no' => $request->user_no, ':tag' => $k, ':value' => $v) ) ) {
|
||||
$request->DoResponse( 500, translate('Error writing calendar properties to database.') );
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user