--- a/includes/pageprocess.php Sat Jan 26 11:51:19 2008 -0500
+++ b/includes/pageprocess.php Sat Jan 26 15:42:32 2008 -0500
@@ -905,13 +905,12 @@
'>' => '>'
));
- $target_username = preg_replace('/^' . preg_quote($paths->nslist['User']) . '/', '', $target_username);
- $target_username = explode('/', $target_username);
- $target_username = $target_username[0];
+ $target_username = preg_replace('/^' . str_replace('/', '\\/', preg_quote($paths->nslist['User'])) . '/', '', $target_username);
+ list($target_username) = explode('/', $target_username);
if ( ( $page_name == str_replace('_', ' ', $this->page_id) || $page_name == $paths->nslist['User'] . str_replace('_', ' ', $this->page_id) ) || !$this->page_exists )
{
- $page_name = "$target_username's user page";
+ $page_name = $lang->get('userpage_page_title', array('username' => htmlspecialchars($target_username)));
}
else
{