Browse Source

Add slash to image urls

Apparently not doing this is technically invalid
spaghetti 8 years ago
parent
commit
dc4681c5be
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      classes/imagetools.class.php

+ 1
- 1
classes/imagetools.class.php View File

186
     if (preg_match('/^https:\/\/('.SITE_DOMAIN.'|'.IMAGE_DOMAIN.')\//', $Url) || $Url[0]=='/') {
186
     if (preg_match('/^https:\/\/('.SITE_DOMAIN.'|'.IMAGE_DOMAIN.')\//', $Url) || $Url[0]=='/') {
187
       return $Url;
187
       return $Url;
188
     } else {
188
     } else {
189
-      return 'https://'.IMAGE_DOMAIN.'?h='.rawurlencode(base64_encode(hash_hmac('sha256', $Url, IMAGE_PSK, true))).'&i='.urlencode($Url);
189
+      return 'https://'.IMAGE_DOMAIN.'/?h='.rawurlencode(base64_encode(hash_hmac('sha256', $Url, IMAGE_PSK, true))).'&i='.urlencode($Url);
190
     }
190
     }
191
   }
191
   }
192
 
192
 

Loading…
Cancel
Save