AnonSec Shell
Server IP : 85.193.89.191  /  Your IP : 52.14.217.56
Web Server : Apache
System : Linux 956367-cx40159.tmweb.ru 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : bitrix ( 600)
PHP Version : 8.1.27
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/bitrix/www/bitrix/components/bitrix/wiki/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/bitrix/www/bitrix/components/bitrix/wiki/component.ajax.php
<?
define('NO_KEEP_STATISTIC', 'Y');
define('NO_AGENT_STATISTIC', 'Y');

require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_before.php');

if(!check_bitrix_sessid())
	return false;

CModule::AddAutoloadClasses(
	'wiki',
	array(
		'CWiki' => 'classes/general/wiki.php',
		'CWikiUtils'  => 'classes/general/wiki_utils.php',
		'CWikiParser' => 'classes/general/wiki_parser.php',
		'CWikiDiff' => 'classes/general/wiki_diff.php',
		'CWikiSocnet' => 'classes/general/wiki_socnet.php',
		'CWikiDocument' => 'classes/general/wiki_document.php',
		'CWikiSecurity' => 'classes/general/wiki_security.php',
		'CUserTypeWiki' => 'classes/general/wiki_usertypewiki.php',
		'CRatingsComponentsWiki' => 'classes/general/ratings_components.php'
	)
);

$res = "";

switch ($_REQUEST["act"])
{
	case  'sanitize':

		if(isset($_REQUEST['text']))
		{
			$res = $_REQUEST['text'];

			if(LANG_CHARSET!="UTF-8")
			{
				$res = $GLOBALS["APPLICATION"]->ConvertCharset($res, "UTF-8", LANG_CHARSET);

				/* if we recieved the mash from utf-8 and other encodings, lets prevent utf-8 text to be wrong decoded
				(sender: /components/bitrix/wiki.edit/templates/.default/script.php:599
				function insertSanitized())
				for example user could copy and insert url from it's browser.
				http://work.localhost/services/wiki/%C3%EB%E0%E2%ED%E0%FF+%F1%F2%F0%E0%ED%E8%F6%E0/edit/	*/
				$res =str_replace("##%##", "%", $res);
			}

			$CWikiParser = new CWikiParser();
			$res = $CWikiParser->Clear($res);
		}

		break;
}

echo $res;
?>

Anon7 - 2022
AnonSec Team