From b6c6979fa2bc2a54befe6a451579ce8ff5515445 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 21 Jan 2006 20:27:47 +0100 Subject: urlencode -> rawurlencode (related to #685) This changes nearly all occurences of urlencode to rawurlencode. The latter encodes spaces as %20 while the former uses a + sign. For the use in browser URLs %20 is the correct form. darcs-hash:20060121192747-7ad00-6563b77368a41f071609495c6a145982938a8301.gz --- inc/template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'inc/template.php') diff --git a/inc/template.php b/inc/template.php index 315373e21..7fc824bd5 100644 --- a/inc/template.php +++ b/inc/template.php @@ -688,7 +688,7 @@ function tpl_mediafilelist(){ $ask = $lang['del_confirm'].'\\n'; $ask .= $item['id']; - $del = ''. ''.$lang['btn_delete'].''; @@ -739,7 +739,7 @@ function tpl_mediafilelist(){ //add edit button if($AUTH >= AUTH_UPLOAD && $item['meta']->getField('File.Mime') == 'image/jpeg'){ - print ''; + print ''; print ''.$lang['metaedit'].''; print ''; } @@ -927,7 +927,7 @@ function tpl_indexerWebBug(){ if(isHiddenPage($ID)) return; //no need to index hidden pages $p = array(); - $p['src'] = DOKU_BASE.'lib/exe/indexer.php?id='.urlencode($ID). + $p['src'] = DOKU_BASE.'lib/exe/indexer.php?id='.rawurlencode($ID). '&'.time(); $p['width'] = 1; $p['height'] = 1; -- cgit v1.2.3