瀏覽代碼

Tag link double encoding problem

https://github.com/FreshRSS/FreshRSS/issues/970
Tags coming from the database are already HTML-encoded.
Alexandre Alapetite 10 年之前
父節點
當前提交
d073331d24
共有 1 個文件被更改,包括 1 次插入1 次删除
  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">
 			<ul class="dropdown-menu">
 				<li class="dropdown-close"><a href="#close">❌</a></li><?php
 				<li class="dropdown-close"><a href="#close">❌</a></li><?php
 				foreach($tags as $tag) {
 				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>
 			</ul>
 		</div>
 		</div>