1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Remote avatar validation fix.

This commit is contained in:
Cameron
2015-08-22 00:15:05 -07:00
parent d3fbef7840
commit ee57ba2275

View File

@@ -1144,7 +1144,7 @@ class validatorClass
{ {
$img = e_AVATAR_UPLOAD.str_replace('-upload-', '', $value); // Its a user-uploaded image $img = e_AVATAR_UPLOAD.str_replace('-upload-', '', $value); // Its a user-uploaded image
} }
elseif (strpos($avName, '/') !== FALSE) elseif (strpos($value, '//') !== false)
{ {
$img = $value; // Its a remote image $img = $value; // Its a remote image
} }