Ignore:
Timestamp:
Apr 8, 2020, 1:22:26 AM (4 years ago)
Author:
chronos
Message:
  • Fixed: URL decoding was not working correctly for other languages.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Application/Core.php

    r880 r883  
    152152    $Remaining = substr($Target, strlen($this->BaseURL));
    153153    $TargetParts = explode('/', $Remaining);
     154    if ((count($TargetParts) > 0) and ($TargetParts[0] == ''))
     155      array_splice($TargetParts, 0, 1);
    154156    if (count($TargetParts) > 0)
    155157    {
    156158      if (in_array($TargetParts[0], $this->LinkLocaleExceptions))
    157159      {
    158         return $this->BaseURL.$Target;
    159       }
    160     }
    161     return $this->LinkLocale($Target);
     160        $Result = $this->BaseURL.$Target;
     161      } else $Result = $this->LinkLocale($Target);
     162    } else $Result = $this->LinkLocale($Target);
     163    return $Result;
    162164  }
    163165
Note: See TracChangeset for help on using the changeset viewer.