Parcourir la source

Tag link double encoding problem

https://github.com/FreshRSS/FreshRSS/issues/970
Tags coming from the database are already HTML-encoded.
Alexandre Alapetite il y a 10 ans
Parent
commit
d073331d24
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/views/helpers/index/normal/entry_bottom.phtml

+ 1 - 1
app/views/helpers/index/normal/entry_bottom.phtml

@@ -71,7 +71,7 @@
 			<ul class="dropdown-menu">
 				<li class="dropdown-close"><a href="#close">❌</a></li><?php
 				foreach($tags as $tag) {
-					?><li class="item"><a href="<?php echo _url('index', 'index', 'search', '#' . urlencode($tag)); ?>"><?php echo $tag; ?></a></li><?php
+					?><li class="item"><a href="<?php echo _url('index', 'index', 'search', '#' . htmlspecialchars_decode($tag)); ?>"><?php echo $tag; ?></a></li><?php
 				} ?>
 			</ul>
 		</div>