1
0
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:
berckoff
2012-02-09 12:13:47 +00:00
parent 3bc59210af
commit 492756820a
2 changed files with 172 additions and 172 deletions

View File

@@ -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;
}

View File

@@ -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':