| @@ 89-91 (lines=3) @@ | ||
| 86 | if (strncmp('<!--', $css, 4) === 0) { |
|
| 87 | $css = substr($css, 4); |
|
| 88 | } |
|
| 89 | if (strlen($css) > 3 && substr($css, -3) == '-->') { |
|
| 90 | $css = substr($css, 0, -3); |
|
| 91 | } |
|
| 92 | $css = trim($css); |
|
| 93 | set_error_handler('htmlpurifier_filter_extractstyleblocks_muteerrorhandler'); |
|
| 94 | $this->_tidy->parse($css); |
|
| @@ 1726-1726 (lines=1) @@ | ||
| 1723 | $fileParts = split("\.", $filename); |
|
| 1724 | $ext = $fileParts[1]; |
|
| 1725 | $mimeType = $this->_mime_types($ext); |
|
| 1726 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
| 1727 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
| 1728 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
| 1729 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
| @@ 1727-1727 (lines=1) @@ | ||
| 1724 | $ext = $fileParts[1]; |
|
| 1725 | $mimeType = $this->_mime_types($ext); |
|
| 1726 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
| 1727 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
| 1728 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
| 1729 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
| 1730 | } |
|
| @@ 2015-2015 (lines=1) @@ | ||
| 2012 | $cid = 'cid:' . md5($filename); |
|
| 2013 | $ext = pathinfo($filename, PATHINFO_EXTENSION); |
|
| 2014 | $mimeType = self::_mime_types($ext); |
|
| 2015 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
| 2016 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
| 2017 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
| 2018 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
| @@ 2016-2016 (lines=1) @@ | ||
| 2013 | $ext = pathinfo($filename, PATHINFO_EXTENSION); |
|
| 2014 | $mimeType = self::_mime_types($ext); |
|
| 2015 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
| 2016 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
| 2017 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
| 2018 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
| 2019 | } |
|
| @@ 347-350 (lines=4) @@ | ||
| 344 | return; |
|
| 345 | } |
|
| 346 | ||
| 347 | if(substr($path, -1) == '/') |
|
| 348 | { |
|
| 349 | $path = substr($path, 0, strlen($path) - 1); |
|
| 350 | } |
|
| 351 | ||
| 352 | if(!$GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path]) |
|
| 353 | { |
|
| @@ 103-103 (lines=1) @@ | ||
| 100 | $url_info = parse_url($request_url); |
|
| 101 | $hostname = $url_info['host']; |
|
| 102 | $path = $url_info['path']; |
|
| 103 | if(strlen($path) >= 1 && substr_compare($path, '/', -1) === 0) $path = substr($path, 0, -1); |
|
| 104 | ||
| 105 | $domain = sprintf('%s%s%s', $hostname, $url_info['port']&&$url_info['port']!=80?':'.$url_info['port']:'',$path); |
|
| 106 | } |
|