deal with multi parameters

This commit is contained in:
wlx 2012-04-17 08:30:45 +00:00
parent 3a6029f5f2
commit 513acb2764
2 changed files with 2 additions and 2 deletions

View File

@ -1220,7 +1220,7 @@ class ServiceController extends Zend_Controller_Action
$this->_helper->viewRenderer->setNoRender();
$this->_helper->layout->disableLayout();
$auth = Zend_Auth::getInstance();
$url = $this->config->geonetwork->url.'/srv/cn/'.$this->_request->getParam('url');
$url = $this->config->geonetwork->url.'/srv/cn/'.urldecode($this->_request->getParam('url'));
if (!$auth->hasIdentity())
{
$this->_redirect('/account/login?href=/service/geonetwork?url='.$url);

View File

@ -50,7 +50,7 @@ $this->breadcrumb()->setSeparator(' > ');
?>
<li>
<p><span class="title"><?php echo $item['title'];?></span>
<a href="/service/geonetwork?url=metadata.create?group=2&id=<?php echo $item['gid']; ?>">以此为模板新建</a>
<a href="/service/geonetwork?url=metadata.create?group=2<?php echo urldecode('&id='.$item['gid']); ?>">以此为模板新建</a>
| <a href="/data/<?php echo $item['uuid'];?>" target="_blank">查看数据</a></p>
<p><?php echo mb_strlen($item['description'])>400?$this->escape(mb_substr($item['description'],0,400,'UTF-8').'...'):$this->escape($item['description']); ?></p>
</li>