Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Nextcloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Nextcloud
Commits
2229290c
Commit
2229290c
authored
10 years ago
by
Morris Jobke
Browse files
Options
Downloads
Patches
Plain Diff
fix typo of blog -> changed to block
* fixes #13460
parent
c9db9523
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/files_encryption/exception/encryptionexception.php
+1
-1
1 addition, 1 deletion
apps/files_encryption/exception/encryptionexception.php
apps/files_encryption/lib/stream.php
+1
-1
1 addition, 1 deletion
apps/files_encryption/lib/stream.php
with
2 additions
and
2 deletions
apps/files_encryption/exception/encryptionexception.php
+
1
−
1
View file @
2229290c
...
@@ -40,7 +40,7 @@ namespace OCA\Files_Encryption\Exception;
...
@@ -40,7 +40,7 @@ namespace OCA\Files_Encryption\Exception;
class
EncryptionException
extends
\Exception
{
class
EncryptionException
extends
\Exception
{
const
GENERIC
=
10
;
const
GENERIC
=
10
;
const
UNEXPECTED_END_OF_ENCRYPTION_HEADER
=
20
;
const
UNEXPECTED_END_OF_ENCRYPTION_HEADER
=
20
;
const
UNEXPECTED_BLO
G
_SIZE
=
30
;
const
UNEXPECTED_BLO
CK
_SIZE
=
30
;
const
ENCRYPTION_HEADER_TO_LARGE
=
40
;
const
ENCRYPTION_HEADER_TO_LARGE
=
40
;
const
UNKNOWN_CIPHER
=
50
;
const
UNKNOWN_CIPHER
=
50
;
const
ENCRYPTION_FAILED
=
60
;
const
ENCRYPTION_FAILED
=
60
;
...
...
This diff is collapsed.
Click to expand it.
apps/files_encryption/lib/stream.php
+
1
−
1
View file @
2229290c
...
@@ -260,7 +260,7 @@ class Stream {
...
@@ -260,7 +260,7 @@ class Stream {
if
(
$count
!==
Crypt
::
BLOCKSIZE
)
{
if
(
$count
!==
Crypt
::
BLOCKSIZE
)
{
\OCP\Util
::
writeLog
(
'Encryption library'
,
'PHP "bug" 21641 no longer holds, decryption system requires refactoring'
,
\OCP\Util
::
FATAL
);
\OCP\Util
::
writeLog
(
'Encryption library'
,
'PHP "bug" 21641 no longer holds, decryption system requires refactoring'
,
\OCP\Util
::
FATAL
);
throw
new
EncryptionException
(
'expected a blo
g
size of 8192 byte'
,
EncryptionException
::
UNEXPECTED_BLO
G
_SIZE
);
throw
new
EncryptionException
(
'expected a blo
ck
size of 8192 byte'
,
EncryptionException
::
UNEXPECTED_BLO
CK
_SIZE
);
}
}
// Get the data from the file handle
// Get the data from the file handle
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment