Changeset 52340 in spip-zone


Ignore:
Timestamp:
Oct 3, 2011, 1:30:26 AM (8 years ago)
Author:
kent1@…
Message:

utilisation des valeurs habituelles de redirection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/doc2img/action/doc2img_convert.php

    r42603 r52340  
    66
    77if (!defined("_ECRIRE_INC_VERSION")) return;
     8
     9include_spip('inc/actions');
    810
    911/**
     
    3032    }
    3133
    32     $redirect = _request('redirect');
    33     //charge la page donnée par $redirect à defaut la page appelante
    34         if (!$redirect){
    35         $redirect = $_SERVER['HTTP_REFERER'];
    36         }else {
    37                 $redirect = urldecode($redirect);
     34    if(_request('redirect')){
     35                $redirect = str_replace('&','&',urldecode(_request('redirect')));
    3836        }
    39 
    40         include_spip('inc/headers');
    41     redirige_par_entete($redirect);
     37        return $redirect;
    4238}
    4339?>
Note: See TracChangeset for help on using the changeset viewer.