Skip to content

Commit

Permalink
# [#29848] UTF8 SEF URLs are causing browser too many redirects
Browse files Browse the repository at this point in the history
failures - additional patch. Thanks Nicholas
  • Loading branch information
nickanti authored and infograf768 committed Jan 21, 2013
1 parent 11f2f6d commit d85341d
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/com_content/models/form.php
Expand Up @@ -130,6 +130,6 @@ public function getItem($itemId = null)
*/
public function getReturnPage()
{
return base64_encode(urldecode($this->getState('return_page')));
return base64_encode(urlencode($this->getState('return_page')));
}
}
2 changes: 1 addition & 1 deletion components/com_content/views/category/tmpl/blog_item.php
Expand Up @@ -146,7 +146,7 @@
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
$link->setVar('return', base64_encode(urlencode($returnURL)));
endif;
?>
<p class="readmore">
Expand Down
Expand Up @@ -157,7 +157,7 @@
$link = JRoute::_('index.php?option=com_users&view=login&Itemid='.$itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug));
$fullURL = new JURI($link);
$fullURL->setVar('return', base64_encode($returnURL));
$fullURL->setVar('return', base64_encode(urlencode($returnURL)));
?>
<a href="<?php echo $fullURL; ?>" class="register">
<?php echo JText::_( 'COM_CONTENT_REGISTER_TO_READ_MORE' ); ?></a>
Expand Down
Expand Up @@ -146,7 +146,7 @@
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
$link->setVar('return', base64_encode(urlencode($returnURL)));
endif;
?>
<p class="readmore">
Expand Down
3 changes: 3 additions & 0 deletions installation/CHANGELOG
Expand Up @@ -26,6 +26,9 @@ $ -> Language fix or change
- -> Removed
! -> Note

21-Jan-2013 Jean-Marie Simonet
# [#29848] UTF8 SEF URLs are causing browser too many redirects failures - additional patch. Thanks Nicholas

19-Jan-2013 Jean-Marie Simonet
# [#29964] Files upload problem

Expand Down
2 changes: 1 addition & 1 deletion templates/beez5/html/com_content/category/blog_item.php
Expand Up @@ -150,7 +150,7 @@
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
$link->setVar('return', base64_encode(urlencode($returnURL)));
endif;
?>
<p class="readmore">
Expand Down
Expand Up @@ -150,7 +150,7 @@
$link = JRoute::_('index.php?option=com_users&view=login&Itemid='.$itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($article->slug));
$fullURL = new JURI($link);
$fullURL->setVar('return', base64_encode($returnURL));
$fullURL->setVar('return', base64_encode(urlencode($returnURL)));
?>
<a href="<?php echo $fullURL; ?>" class="register">
<?php echo JText::_( 'COM_CONTENT_REGISTER_TO_READ_MORE' ); ?></a>
Expand Down
2 changes: 1 addition & 1 deletion templates/beez5/html/com_content/featured/default_item.php
Expand Up @@ -156,7 +156,7 @@
$link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId);
$returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid));
$link = new JURI($link1);
$link->setVar('return', base64_encode($returnURL));
$link->setVar('return', base64_encode(urlencode($returnURL)));
endif;
?>
<p class="readmore">
Expand Down

0 comments on commit d85341d

Please sign in to comment.