Skip to content

Commit

Permalink
refs #1844 : modify - canonical URL is encoded by default
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Apr 26, 2016
1 parent 22c091f commit f058fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/model/URIHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function __URIvariableParser() {
$this->uri['host'] = ($this->context->getProperty('service.useSSL',false) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . (!is_null($this->context->getProperty('port')) ? ':' . $this->context->getProperty('port') : '');
$this->uri['blog'] = $this->uri['path'].$this->__getFancyURLpostfix();
$this->uri['folder'] = rtrim($this->uri['blog'] . $suri['directive'], '/');
$this->uri['permalink'] = rtrim($this->uri['default'].rtrim($this->suri['directive'],'/').(empty($this->suri['id']) ? '/'.$this->suri['value'] : '/'.$this->suri['id']),'/');
$this->uri['permalink'] = rtrim($this->uri['default'].rtrim($this->suri['directive'],'/').(empty($this->suri['id']) ? '/'.URL::encode($this->suri['value']) : '/'.$this->suri['id']),'/');
$this->uri['basicblog'] = $this->uri['blog'];
if (defined('__TEXTCUBE_MOBILE__')) {
$this->uri['blog'] .= '/m';
Expand Down

0 comments on commit f058fdd

Please sign in to comment.