From 59b8227133dc4863594d1a32052629e2a6631148 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 24 Jun 2014 08:47:51 +0300 Subject: [PATCH] php/gravatar.php: Don't create links for empty md5 hashes! --- php/gravatar.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/gravatar.php b/php/gravatar.php index ac0ef63..f1668be 100755 --- a/php/gravatar.php +++ b/php/gravatar.php @@ -28,6 +28,9 @@ $email = strtolower( $email ); $md5email = md5( $email ); +// Do nothing if our md5 is an empty string! +if($md5email != "d41d8cd98f00b204e9800998ecf8427e") { + echo "

md5
$md5email

"; echo "

Link
"; @@ -36,4 +39,5 @@ echo "$gravatar

"; echo "

"; echo ""; echo "

"; +} ?>