__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Nextend\Framework\Request\Parser;
class WordPressRequestParser extends AbstractRequestParser {
private $isSlashed;
public function __construct() {
$this->isSlashed = did_action('init') > 0;
}
public function parseData($data) {
if ($this->isSlashed) {
if (is_array($data)) {
return $this->stripslashesRecursive($data);
}
return stripslashes($data);
}
return $data;
}
private function stripslashesRecursive($array) {
foreach ($array as $key => $value) {
$array[$key] = is_array($value) ? $this->stripslashesRecursive($value) : stripslashes($value);
}
return $array;
}
}| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AbstractRequestParser.php | File | 143 B | 0664 |
|
| JoomlaRequestParser.php | File | 179 B | 0664 |
|
| WordPressRequestParser.php | File | 740 B | 0664 |
|