HEX
Server: Apache
System: Linux webm010.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: iestorre (46869)
PHP: 8.0.30
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/iestorre/www/components/com_quicklogout/quicklogout.php
<?php
/**
 * @version     1.8.0
 * @package     com_quicklogout
 * @copyright   Copyright (C) 2011. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 * @author      Created by com_combuilder - http://www.notwebdesign.com
 * Version 1.8 includes an addition by Chad Myers to allow the user to specify the logout redirect
 */

defined('_JEXEC') or die;

// Include dependancies
jimport('joomla.application.component.controller');

// get param and menu URL
$params = JFactory::getApplication('site')->getParams();
$item = JFactory::getApplication()->getMenu()->getItem($params->get("quick_logout_redirect"));
$url = JRoute::_($item->link . '&Itemid=' . $item->id,false);

// lets try to make this simple
$loloc = "Location: index.php?option=com_users&task=user.logout&";
$loloc .=  JSession::getFormToken();
$loloc .= "=1&return=";

// original code here
//$loloc .= base64_encode($url ."\n");

// modification contributed by Shawn Sparks
$loloc .= base64_encode( htmlspecialchars_decode( $url )."\n" );
header( $loloc );


// Execute the task.
//$controller	= JController::getInstance('Quicklogout');
//$controller->execute(JRequest::getVar('task',''));
//$controller->redirect();