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/posts_actions.php

    r1999 r2243  
    1818dcPage::check('usage,contentadmin'); 
    1919 
    20 $posts_actions_page = new dcPostsActionsPage($core,'posts.php'); 
     20if (isset($_REQUEST['redir'])) { 
     21     $u = explode('?',$_REQUEST['redir']); 
     22     $uri = $u[0]; 
     23     if (isset($u[1])) { 
     24          parse_str($u[1],$args); 
     25     } 
     26     $args['redir'] = $_REQUEST['redir']; 
     27} else { 
     28     $uri = 'posts.php'; 
     29     $args=array(); 
     30} 
    2131 
     32$posts_actions_page = new dcPostsActionsPage($core,$uri,$args); 
     33$posts_actions_page->setEnableRedirSelection(false); 
    2234$posts_actions_page->process(); 
    2335 
Note: See TracChangeset for help on using the changeset viewer.

Sites map