Oh I get it, you're using UTF-8, Persian or Arabic, sorry I cannot tell
So the title injection will not work as is.
I worked on an UTF-8 trick which is nicely working, but you'll need some extra steps.
For your viewtopic file (heavily modded), try these additional steps:
Find :
- Code: Select all
$title = (strlen($similar['topic_title']) > 40) ? (substr($similar['topic_title'], 0, 37) . '...') : $similar['topic_title'];
$topic_url = '<a href="'. append_sid('viewtopic.'.$phpEx.'?'. POST_TOPIC_URL . '=' . $similar['topic_id']) . '" class="topictitle">' . $title . '</a>';
Before add :
- Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_topic_name = $similar['topic_title'];
$seo_forum_name_save = $seo_forum_name;
$seo_forum_name = $similar['forum_name'];
// www.phpBB-SEO.com SEO TOOLKIT END
Find :
- Code: Select all
$forum = '<a href="' . append_sid('viewforum.'.$phpEx.'?' . POST_FORUM_URL . '=' . $similar['forum_id']) .'" class="forumlink">' . $similar['forum_name'] . '</a>';
after add :
- Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$seo_forum_name = $seo_forum_name_save;
// www.phpBB-SEO.com SEO TOOLKIT END
It should be enough, but you'll have to test
Then for UTF-8, please read this thread and we talk about the additional changes there
