One Hat Cyber Team
Your IP:
216.73.216.30
Server IP:
198.54.114.155
Server:
Linux server71.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
5.6.40
Create File
|
Create Folder
Execute
Dir :
~
/
proc
/
self
/
root
/
proc
/
thread-self
/
cwd
/
View File Name :
Casts.tar
CleanHtmlInput.php 0000644 00000001574 15111157405 0010153 0 ustar 00 <?php namespace Mews\Purifier\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class CleanHtmlInput implements CastsAttributes { use WithConfig; /** * Cast the given value. Does not clean the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param mixed $value * @param array $attributes * @return array */ public function get($model, $key, $value, $attributes) { return $value; } /** * Prepare the given value for storage by cleaning the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param array $value * @param array $attributes * @return string */ public function set($model, $key, $value, $attributes) { return clean($value, $this->config); } } CleanHtmlOutput.php 0000644 00000001577 15111157405 0010357 0 ustar 00 <?php namespace Mews\Purifier\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class CleanHtmlOutput implements CastsAttributes { use WithConfig; /** * Clean the HTML when casting the given value. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param mixed $value * @param array $attributes * @return array */ public function get($model, $key, $value, $attributes) { return clean($value, $this->config); } /** * Prepare the given value for storage. Does not clean the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param array $value * @param array $attributes * @return string */ public function set($model, $key, $value, $attributes) { return $value; } } WithConfig.php 0000644 00000000323 15111157406 0007315 0 ustar 00 <?php namespace Mews\Purifier\Casts; trait WithConfig { /** * @var mixed */ protected $config; public function __construct($config = null) { $this->config = $config; } } CleanHtml.php 0000644 00000001613 15111157406 0007126 0 ustar 00 <?php namespace Mews\Purifier\Casts; use Illuminate\Contracts\Database\Eloquent\CastsAttributes; class CleanHtml implements CastsAttributes { use WithConfig; /** * Clean the HTML when casting the given value. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param mixed $value * @param array $attributes * @return array */ public function get($model, $key, $value, $attributes) { return clean($value, $this->config); } /** * Prepare the given value for storage by cleaning the HTML. * * @param \Illuminate\Database\Eloquent\Model $model * @param string $key * @param array $value * @param array $attributes * @return string */ public function set($model, $key, $value, $attributes) { return clean($value, $this->config); } }