From da885a986777e5fba5872d81221ee155821c13bf Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Wed, 25 May 2016 03:21:31 +0000 Subject: Response: Deprecate $sha1 get_sha1() was deprecated in a5314a2ff4cb503ff41da13ffd0e907f49ee4009, so formally $sha1 was also formally deprecated but not commented. Clarify we really want to deprecate $sha1 too. Updates CHANGELOG.md. --- CHANGELOG.md | 4 ++-- static/classes/UploadedFile.class.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 63c9fb4..e6e52ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,8 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Swig banners. Use Swig templates or an alternative. (Juuso Lapinlampi) - Unused file expiration (`expire`). This feature may be removed in the next major version. (Juuso Lapinlampi) -- `get_sha1()` function. This API may be changed or removed in the next - major version, switching to SHA-256 hashes. (Juuso Lapinlampi) +- `get_sha1()` function and `$sha1` variable. This API may be changed or removed + in the next major version, switching to SHA-256 hashes. (Juuso Lapinlampi) - `csv_error`, `csv_success`, `html_error`, `html_success`, `json_error`, `json_success`, `text_error` and `text_success` functions. The functions will be renamed to `camelCase` format (e.g. `csvError`, diff --git a/static/classes/UploadedFile.class.php b/static/classes/UploadedFile.class.php index 20d42b3..ccbaea8 100644 --- a/static/classes/UploadedFile.class.php +++ b/static/classes/UploadedFile.class.php @@ -38,6 +38,7 @@ class UploadedFile /** * SHA-1 checksum * + * @deprecated 2.1.0 To be replaced with SHA-256 hashing. * @var string 40 digit hexadecimal hash (160 bits) */ private $sha1; -- cgit v1.2.3