Browse Source

Don't proxy local files

spaghetti 8 years ago
parent
commit
b1bc757a2d
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      classes/imagetools.class.php

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

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

Loading…
Cancel
Save