diff options
author | Mario <mario@mariovavti.com> | 2021-01-23 12:35:02 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-01-23 12:35:02 +0000 |
commit | fbbc53838c04e6b85ac24a65fcf0c9c5795fdef7 (patch) | |
tree | 2402c7a151fde1d9566271a9f3a7cff4e8fb54f2 | |
parent | 7bc03401062768b88b1ba46c2f5e24f4d6b133db (diff) | |
download | volse-hubzilla-fbbc53838c04e6b85ac24a65fcf0c9c5795fdef7.tar.gz volse-hubzilla-fbbc53838c04e6b85ac24a65fcf0c9c5795fdef7.tar.bz2 volse-hubzilla-fbbc53838c04e6b85ac24a65fcf0c9c5795fdef7.zip |
fix ramsey/uuid exception
-rw-r--r-- | include/text.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/text.php b/include/text.php index d6b196f1e..1e08d136c 100644 --- a/include/text.php +++ b/include/text.php @@ -7,7 +7,7 @@ use Zotlabs\Lib as Zlib; use Michelf\MarkdownExtra; use Ramsey\Uuid\Uuid; -use Ramsey\Uuid\Exception\UnsatisfiedDependencyException; +use Ramsey\Uuid\Exception\UnableToBuildUuidException; use Zotlabs\Lib\SvgSanitizer; @@ -3824,7 +3824,7 @@ function new_uuid() { try { $hash = Uuid::uuid4()->toString(); - } catch (UnsatisfiedDependencyException $e) { + } catch (UnableToBuildUuidException $e) { $hash = random_string(48); } @@ -3842,7 +3842,7 @@ function uuid_from_url($url) { try { $hash = Uuid::uuid5(Uuid::NAMESPACE_URL, $url)->toString(); - } catch (UnsatisfiedDependencyException $e) { + } catch (UnableToBuildUuidException $e) { $hash = md5($url); } return $hash; |