TConfigurationException

Description

Application configuration <alias id="Moebius"> uses an invalid file path "../moebius".

Source File

/var/www/vhosts/website13/web/framework/pradolite.php (9366)

9355:             switch($element->getTagName())
9356:             {
9357:                 case 'alias':
9358:                 {
9359:                     if(($id=$element->getAttribute('id'))!==null && ($path=$element->getAttribute('path'))!==null)
9360:                     {
9361:                         $path=str_replace('\\','/',$path);
9362:                         if(preg_match('/^\\/|.:\\/|.:\\\\/',$path))                                $p=realpath($path);
9363:                         else
9364:                             $p=realpath($configPath.DIRECTORY_SEPARATOR.$path);
9365:                         if($p===false || !is_dir($p))
9366: throw new TConfigurationException('appconfig_aliaspath_invalid',$id,$path);
9367: if(isset($this->_aliases[$id])) 9368: throw new TConfigurationException('appconfig_alias_redefined',$id); 9369: $this->_aliases[$id]=$p; 9370: } 9371: else 9372: throw new TConfigurationException('appconfig_alias_invalid'); 9373: $this->_empty=false; 9374: break; 9375: } 9376: case 'using': 9377: { 9378: if(($namespace=$element->getAttribute('namespace'))!==null)

Stack Trace

#0 /var/www/vhosts/website13/web/framework/pradolite.php(9332): TApplicationConfiguration->loadPathsXml(Object(TXmlElement), '/var/www/vhosts...')
#1 /var/www/vhosts/website13/web/framework/pradolite.php(9314): TApplicationConfiguration->loadFromXml(Object(TXmlDocument), '/var/www/vhosts...')
#2 /var/www/vhosts/website13/web/framework/pradolite.php(9190): TApplicationConfiguration->loadFromFile('/var/www/vhosts...')
#3 /var/www/vhosts/website13/web/framework/pradolite.php(8860): TApplication->initApplication()
#4 /var/www/vhosts/website13/web/index.php(38): TApplication->run()
#5 {main}
2019-01-24 08:10 Apache/2.2.22 (Debian) PRADO/3.1.7