diff --git a/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php b/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php index 902bd32..580c109 100644 --- a/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php +++ b/core/components/phpthumbon/model/phpthumbon/phpthumbon.class.php @@ -352,8 +352,10 @@ public function relativeSrcPath() $full_assets = $this->_config['assetsPath']; $assets = ltrim($this->_config['assetsUrl'], '/'); $imgDir = $this->_config['imagesFolder']; + + $mbp = str_replace('\\', '\\\\', MODX_BASE_PATH); - $this->_config['relativePath'] = preg_replace("#^({$full_assets}|(/)?{$assets})(/)?{$imgDir}(/)?|" . MODX_BASE_PATH . "#", '', + $this->_config['relativePath'] = preg_replace("#^({$full_assets}|(/)?{$assets})(/)?{$imgDir}(/)?|" . $mbp . "#", '', $this->_pathinfo('dirname')); } else { if ($this->_flag = file_exists($this->_config['noimage'])) {