Dotclear


Ignore:
Timestamp:
10/04/13 11:06:08 (12 years ago)
Author:
Dsls
Branch:
default
Message:

Compatibility for actionspage : handle redir if set, avoid plugins bugs when specifying "%" in URLs by disbling entry selection persistence.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/comments_actions.php

    r2066 r2243  
    1616require dirname(__FILE__).'/../inc/admin/prepend.php'; 
    1717 
     18if (isset($_REQUEST['redir'])) { 
     19     $u = explode('?',$_REQUEST['redir']); 
     20     $uri = $u[0]; 
     21     if (isset($u[1])) { 
     22          parse_str($u[1],$args); 
     23     } 
     24     $args['redir'] = $_REQUEST['redir']; 
     25} else { 
     26     $uri = 'posts.php'; 
     27     $args=array(); 
     28} 
     29 
    1830dcPage::check('usage,contentadmin'); 
    1931 
    2032$comments_actions_page = new dcCommentsActionsPage($core,'comments.php'); 
     33$comments_actions_page->setEnableRedirSelection(false); 
    2134 
    2235$comments_actions_page->process(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map