Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 23 Aug 2025 23:29:16
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/View/Helper/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/View/Helper/PathPattern.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\View\Helper; /** * Path pattern creation helper */ class PathPattern { /** * Translate pattern with glob syntax into regular expression * * @param string $path * @return string */ public function translatePatternFromGlob($path) { $pattern = str_replace(['\\?', '\\*'], ['[^/]', '[^/]*'], preg_quote($path)); $pattern = $this->translateGroupsFromGlob($pattern); $pattern = $this->translateCharacterGroupsFromGlob($pattern); return $pattern; } /** * Translate groups from escaped glob syntax into regular expression * * Example: filename\.\{php,css,js\} -> filename\.(?:php|css|js) * Transformations: * 1. \{ -> (?: * 2. , -> | * 3. \} -> ) * * @param string $pattern * @return string */ protected function translateGroupsFromGlob($pattern) { preg_match_all('~\\\\\\{[^,\\}]+(?:,[^,\\}]*)*\\\\\\}~', $pattern, $matches, PREG_OFFSET_CAPTURE); for ($index = count($matches[0]) - 1; $index >= 0; $index--) { list($match, $offset) = $matches[0][$index]; $replacement = substr_replace($match, '(?:', 0, 2); $replacement = substr_replace($replacement, ')', -2); $replacement = str_replace(',', '|', $replacement); $pattern = substr_replace($pattern, $replacement, $offset, strlen($match)); } return $pattern; } /** * Translate character groups from escaped glob syntax into regular expression * * Example: \[\!a\-f\]\.php -> [^a-f]\.php * Transformations: * 1. \[ -> [ * 2. \! -> ^ * 3. \- -> - * 4. \] -> ] * * @param string $pattern * @return string */ protected function translateCharacterGroupsFromGlob($pattern) { preg_match_all('~\\\\\\[(\\\\\\!)?[^\\]]+\\\\\\]~i', $pattern, $matches, PREG_OFFSET_CAPTURE); for ($index = count($matches[0]) - 1; $index >= 0; $index--) { list($match, $offset) = $matches[0][$index]; $exclude = !(empty($matches[1][$index]) || empty($matches[1][$index][0])); $replacement = substr_replace($match, '[' . ($exclude ? '^' : ''), 0, $exclude ? 4 : 2); $replacement = substr_replace($replacement, ']', -2); $replacement = str_replace('\\-', '-', $replacement); $pattern = substr_replace($pattern, $replacement, $offset, strlen($match)); } return $pattern; } }