sfortis
07-02-2017, 04:01 AM
hello all,
it used to work but now when i'm clicking the pencin icon on siderbar user profile, the redirection url contains character codes for "&" and "=" instead of symbols.
for example:
https://[myforum]/forum/adminpanel/index.php loc=user.php%253Fdo%253Dedit%2526u%253D49877
of course the adminpanel gives me a great "Not Found" error.
the above url is constructed by moderator.php ,but i dont see any issue there...
moderator.php
if (can_administer('canadminusers'))
{
exec_header_redirect($vbulletin->config['Misc']['admincpdir'] . '/index.php?' . $vbulletin->session->vars['sessionurl_js'] . 'loc=' . urlencode('user.php?' . $vbulletin->session->vars['sessionurl_js'] . "do=edit&u=$userid"));
}
else if (can_moderate(0, 'canviewprofile'))
{
exec_header_redirect($vbulletin->config['Misc']['modcpdir'] . '/index.php?' . $vbulletin->session->vars['sessionurl_js'] . 'loc=' . urlencode('user.php?' . $vbulletin->session->vars['sessionurl_js'] . "do=viewuser&u=$userid"));
}
else
your help is much appreciated!!
it used to work but now when i'm clicking the pencin icon on siderbar user profile, the redirection url contains character codes for "&" and "=" instead of symbols.
for example:
https://[myforum]/forum/adminpanel/index.php loc=user.php%253Fdo%253Dedit%2526u%253D49877
of course the adminpanel gives me a great "Not Found" error.
the above url is constructed by moderator.php ,but i dont see any issue there...
moderator.php
if (can_administer('canadminusers'))
{
exec_header_redirect($vbulletin->config['Misc']['admincpdir'] . '/index.php?' . $vbulletin->session->vars['sessionurl_js'] . 'loc=' . urlencode('user.php?' . $vbulletin->session->vars['sessionurl_js'] . "do=edit&u=$userid"));
}
else if (can_moderate(0, 'canviewprofile'))
{
exec_header_redirect($vbulletin->config['Misc']['modcpdir'] . '/index.php?' . $vbulletin->session->vars['sessionurl_js'] . 'loc=' . urlencode('user.php?' . $vbulletin->session->vars['sessionurl_js'] . "do=viewuser&u=$userid"));
}
else
your help is much appreciated!!