Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
To solve this, I improved the code with parse_url in robokassa.pages.inc
<?php
function robokassa_status()
{
global $base_path;
drupal_add_http_header('Content-type', 'text/html; charset=iso-8859-1');
// check url
$url = trim($_SERVER['REQUEST_URI'], '/');
$alias = trim($base_path . drupal_get_path_alias('robokassa/status'), '/');
if (parse_url($url, PHP_URL_PATH) != $alias)
{
watchdog('Robokassa', 'Wrong Result URL accessed "%url"', array("%url" => $url), WATCHDOG_WARNING);
die("Wrong Result URL accessed: $url <> $alias\n");
}
...
?>
I'll be glad if the code will be patched soon.