Skip to content
Snippets Groups Projects
Commit ddedf201 authored by Florin Peter's avatar Florin Peter
Browse files

prevent of infinite loop with FileProxy

parent 791751b5
No related branches found
No related tags found
No related merge requests found
......@@ -509,15 +509,15 @@ class Stream {
// Save the sharekeys
Keymanager::setShareKeys( $view, $this->relPath, $this->encKeyfiles['keys'] );
// Re-enable proxy - our work is done
\OC_FileProxy::$enabled = $proxyStatus;
// get file info
$fileInfo = $view->getFileInfo($this->rawPath);
if(!is_array($fileInfo)) {
$fileInfo = array();
}
// Re-enable proxy - our work is done
\OC_FileProxy::$enabled = $proxyStatus;
// set encryption data
$fileInfo['encrypted'] = true;
$fileInfo['size'] = $this->size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment