Commit 9fd6785f authored by Max Kostikov's avatar Max Kostikov

Merge branch 'dev' into 'dev'

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

See merge request !234
parents 02550a06 db92220e
......@@ -147,6 +147,7 @@ function photocache_hash($str, $alg = 'sha256') {
if($cnt) {
$ph = photo_factory('');
foreach ($matches as $match) {
$match[3] = trim($match[3]);
if(photocache_isgrid($match[3]))
continue;
......
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