diff options
-rw-r--r-- | application/http/UrlUtils.php | 2 | ||||
-rw-r--r-- | index.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/application/http/UrlUtils.php b/application/http/UrlUtils.php index 4bc84b82..e8d1a283 100644 --- a/application/http/UrlUtils.php +++ b/application/http/UrlUtils.php | |||
@@ -73,7 +73,7 @@ function add_trailing_slash($url) | |||
73 | */ | 73 | */ |
74 | function whitelist_protocols($url, $protocols) | 74 | function whitelist_protocols($url, $protocols) |
75 | { | 75 | { |
76 | if (startsWith($url, '?') || startsWith($url, '/')) { | 76 | if (startsWith($url, '?') || startsWith($url, '/') || startsWith($url, '#')) { |
77 | return $url; | 77 | return $url; |
78 | } | 78 | } |
79 | $protocols = array_merge(['http', 'https'], $protocols); | 79 | $protocols = array_merge(['http', 'https'], $protocols); |
@@ -465,7 +465,7 @@ function showDaily($pageBuilder, $LINKSDB, $conf, $pluginManager, $loginManager) | |||
465 | // Description: 836 characters gives roughly 342 pixel height. | 465 | // Description: 836 characters gives roughly 342 pixel height. |
466 | // This is not perfect, but it's usually OK. | 466 | // This is not perfect, but it's usually OK. |
467 | $length = strlen($link['title']) + (342 * strlen($link['description'])) / 836; | 467 | $length = strlen($link['title']) + (342 * strlen($link['description'])) / 836; |
468 | if ($link['thumbnail']) { | 468 | if (!empty($link['thumbnail'])) { |
469 | $length += 100; // 1 thumbnails roughly takes 100 pixels height. | 469 | $length += 100; // 1 thumbnails roughly takes 100 pixels height. |
470 | } | 470 | } |
471 | // Then put in column which is the less filled: | 471 | // Then put in column which is the less filled: |