Error with UC browser!

199
.
So, i installed JohnCMS 5.2.1 to my site, http://moxim.ru

but there's some kind of problem that, users can't write to guestbook using UC browser. But it's okay with Opera Mini or Google Chrome. But why exactly error with UC? When you try, it says: Bad data. Please, help!
.
Jane
Блиносвёрт ?
I think the problem is that UC browser doesn't pass the referer
try to turn on it in settings or use another browser
.
Jane, No, the problem isn't only with me. Everybody keeps telling that

and how can i add reload button to guestbook? I'm not that good at PHP
.
Блиносвёрт ?
TalkingTom, I know about such problem in some old browsers
but this feature is nessesary for better security
is the problem dissapearing arter page reloading?
.
Jane, No users can't write with uc browser nothing helped
.
Jane
Блиносвёрт ?
TalkingTom, if you remove 'Bad data' from cms it will affect the security
the problem is in browser that doen't send the refferer
probably there are special settings inside
.
Jane, But i can write to other JohnCMS installed sites with UC
.
TalkingTom, i have been the same problem on my site, removed the referer cod from panel/core.php

Delete this
function validate_referer()
{
    if ($_SERVER['REQUEST_METHOD'] !== 'POST') return;
    if (@!empty($_SERVER['HTTP_REFERER'])) {
        $ref = parse_url(@$_SERVER['HTTP_REFERER']);
        if ($_SERVER['HTTP_HOST'] === $ref['host']) return;
    }
    die('Invalid request');
}

if ($rights) {
    validate_referer();
}
Всего: 8