mirror of
https://github.com/e107inc/e107.git
synced 2025-08-07 07:06:30 +02:00
Core plugin Forum: fixed malformed URL in url.php (line:65) + fixed forgotten "encode"=false parameter in forum_post.php (line:405) URL creation leading to Access denied! error after redirect.
This commit is contained in:
@@ -402,7 +402,7 @@ if (isset($_POST['update_thread']))
|
||||
$forum->threadUpdate($postInfo['post_thread'], $threadVals);
|
||||
$forum->postUpdate($postInfo['post_id'], $postVals);
|
||||
$e107cache->clear('newforumposts');
|
||||
$url = $e107->url->create('forum/thread/post', array('name'=>$threadVals['thread_name'], 'id' => $postInfo['post_id'], 'thread' => $postInfo['post_thread']));
|
||||
$url = $e107->url->create('forum/thread/post', array('name'=>$threadVals['thread_name'], 'id' => $postInfo['post_id'], 'thread' => $postInfo['post_thread']), array('encode'=>false));
|
||||
header('location:'.$url);
|
||||
exit;
|
||||
}
|
||||
|
@@ -62,7 +62,7 @@ class plugin_forum_url extends eUrlConfig
|
||||
break;
|
||||
|
||||
case 'post':
|
||||
return $base."forum_post.php?f={$params['type']}}id={$params['id']}";
|
||||
return $base."forum_post.php?f={$params['type']}{$amp}id={$params['id']}";
|
||||
break;
|
||||
|
||||
case 'rules':
|
||||
|
Reference in New Issue
Block a user