Browse Source

Image proxy: handle internal resources better

Tooltips: fix on user page
spaghetti 8 years ago
parent
commit
95543bcd5e
2 changed files with 1 additions and 3 deletions
  1. 1
    0
      classes/imagetools.class.php
  2. 0
    3
      sections/user/user.php

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

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

+ 0
- 3
sections/user/user.php View File

@@ -1534,7 +1534,4 @@ if (!$DisablePoints) {
1534 1534
 ?>
1535 1535
   </div>
1536 1536
 </div>
1537
-<script>
1538
-$('.tooltip').tooltipster();
1539
-</script>
1540 1537
 <? View::show_footer(); ?>

Loading…
Cancel
Save