Authored by whb

tools

@@ -40,7 +40,7 @@ class ToolsController extends WebAction @@ -40,7 +40,7 @@ class ToolsController extends WebAction
40 ); 40 );
41 $html = ''; 41 $html = '';
42 foreach ($channels as $key => $val) { 42 foreach ($channels as $key => $val) {
43 - $url = '/tools/cacheclear?key='.AuthCode::encode($val, 'yohobuy'); 43 + $url = '/tools/cacheclear?key='.urlencode(AuthCode::encode($val, 'yohobuy'));
44 $html.= sprintf('<li><a href="%s" target="_blank">清除%s缓存</a></li>',$url, $key); 44 $html.= sprintf('<li><a href="%s" target="_blank">清除%s缓存</a></li>',$url, $key);
45 } 45 }
46 echo $html; 46 echo $html;