-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert timestamp to int before calling Sabre_DAV_Property_GetLastModified #8098
Conversation
👍 |
Makes sense 👍 |
The inspection completed: No new issues |
🚀 Test Passed. 🚀 |
@PVince81 this is actually a bad fix, because server.php is part of upstream SabreDAV. We have a local copy of this class because of depth infinity support, which is meanwhile merged upstream https://github.com/fruux/sabre-dav/pull/398 |
Ah ok, I didn't know it was a copy. I'll raise an issue upstream then. |
@DeepDiver1975 hmmm how to proceed ? The upstream code seems to be updated a lot. What do you think ? |
for OC6 this PR would be okay for OC7 I'd like to update SabreDAV - see #6723 If we stick with 1.8.7 we have to patch the copy of server.php. |
I tried #6723 but the timestamp issue still exists there. |
@DeepDiver1975 I just realized after looking at upstream code that our I'll fix it there instead, so there is nothing to fix upstream in such case. |
Branch resurrected, reopening. |
Ok, GitHub is confused, I'll submit a separate PR. |
Replacement PR is here: #8107 |
The constructor of Sabre_DAV_Property_GetLastModified is not able to
create a date from a negative timestamp string.
This fix converts the timestamp to int first before passing it.
Fixes #7921
Please review @DeepDiver1975 @icewind1991