Skip to content

Commit

Permalink
Merge pull request Kunena#432 from mahagr/master
Browse files Browse the repository at this point in the history
Fix Kunena#426, Kunena#428 and Mirage html issues
  • Loading branch information
mahagr committed Mar 24, 2012
2 parents d375f29 + 17cc169 commit 147cc08
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ protected function sendResponse() {
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
while(@ob_end_clean());
ob_start();
$error = $this->getError();
if ($error) {
jexit('{"error" : '.$error.'", "id" : "id"}');
Expand Down
2 changes: 1 addition & 1 deletion components/com_kunena/controllers/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ function login() {
}

function logout() {
if(!JRequest::checkToken()) {
if(!JRequest::checkToken('request')) {
$this->app->redirect ( JRequest::getVar ( 'HTTP_REFERER', JURI::base ( true ), 'server' ), COM_KUNENA_ERROR_TOKEN, 'error' );
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<button class="kbutton button-type-standard" type="submit"><span><?php //echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT') ?></span></button>
</fieldset>
</form>-->
<a class="link" href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=user&task=logout') ?>">
<a class="link" href="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=user&task=logout&'.JUtility::getToken().'=1') ?>" title="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT') .' :: '. JText::_('COM_KUNENA_VIEW_COMMON_LOGOUT_LONG') ?>">
<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGOUT') ?>
</a>
</li>
Expand Down
5 changes: 2 additions & 3 deletions components/com_kunena/template/mirage/html/search/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
?>
<div class="kmodule search_adv">
<form action="<?php echo KunenaRoute::_('index.php?option=com_kunena&view=search') ?>" name="adminForm" id="adminForm" method="post">
<input type="hidden" name="task" value="results" />
<?php echo JHTML::_( 'form.token' ); ?>
<input type="hidden" name="task" value="results" />
<?php echo JHTML::_( 'form.token' ); ?>
<div class="kbox-wrapper kbox-full">
<div class="search_adv-kbox kbox kbox-full kbox-color kbox-border kbox-border_radius kbox-border_radius-vchild kbox-shadow">
<div class="headerbox-wrapper kbox-full">
Expand Down Expand Up @@ -110,7 +110,6 @@
</div>
</div>
</div>
</form>
</div>
</div>
</form>
Expand Down

0 comments on commit 147cc08

Please sign in to comment.