Commit db92220e authored by Max Kostikov's avatar Max Kostikov

Remove spaces from the start or / and end of image URL

parent 4ebd2684
......@@ -147,6 +147,7 @@ function photocache_hash($str, $alg = 'sha256') {
if($cnt) {
$ph = photo_factory('');
foreach ($matches as $match) {
$match[3] = trim($match[3]);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment