Input parameters like 't' 'o' etc.

guiltar

Well-known member
Hello dear developers!
Could you explain when appear such input params like 't','o' and what do they mean?
I'm writing an external authorization similar to facebok and found the code:
PHP:
$fbToken = $this->_input->filterSingle('t', XenForo_Input::STRING);
When it has a not null value? What pieces of code can put a value to this varieble 't'?
 
Looking over the code, it looks like it's defined in a redirect after the user clicked the confirmation registering with Facebook, as above where that line appears is:
PHP:
            return $this->responseRedirect(
                XenForo_ControllerResponse_Redirect::RESOURCE_CANONICAL,
                XenForo_Helper_Facebook::getFacebookRequestUrl($fbRedirectUri)
            );
If the variable doesn't exist in the parameters, it will return null otherwise it will proceed. I believe t refers to token, as in fb_token that's used elsewhere in that script, though I don't see an instance of o.

I'm not 100% sure but it looks like that is what happens.
 
Do You mean it becomes defined in redirects? I can't see where exactly.
It definitely refers to token. But there are no inputs with name 't' in templates and search 't' over the code gives only the lines where it parsed.
'o' and others appear in search handlers.
 
Again have seen
PHP:
    public function getSearchFormControllerResponse(XenForo_ControllerPublic_Abstract $controller, XenForo_Input $input, array $viewParams)
    {
        $params = $input->filterSingle('c', XenForo_Input::ARRAY_SIMPLE);
and still no idea where it comes from :(
 
Top Bottom