-
Notifications
You must be signed in to change notification settings - Fork 566
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,078 changed files
with
343,708 additions
and
179,852 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
/node_modules | ||
Homestead.yaml | ||
Homestead.json | ||
/nbproject/private/ | ||
/nbproject/private/ | ||
.env | ||
/app/Plugins/ServiceDesk/ | ||
/app/config/ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use File; | ||
use Illuminate\Database\Eloquent\Model; | ||
|
||
/** | ||
* ====================================== | ||
* Attchment Model | ||
* ====================================== | ||
* This is a model representing the attachment table. | ||
* | ||
* @author Ladybird <info@ladybirdweb.com> | ||
*/ | ||
class BaseModel extends Model | ||
{ | ||
public function setAttribute($property, $value) | ||
{ | ||
require_once base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier.auto.php'); | ||
$path = base_path('vendor'.DIRECTORY_SEPARATOR.'htmlpurifier'.DIRECTORY_SEPARATOR.'library'.DIRECTORY_SEPARATOR.'HTMLPurifier'.DIRECTORY_SEPARATOR.'DefinitionCache'.DIRECTORY_SEPARATOR.'Serializer'); | ||
if (!File::exists($path)) { | ||
File::makeDirectory($path, $mode = 0777, true, true); | ||
} | ||
$config = \HTMLPurifier_Config::createDefault(); | ||
//dd($config); | ||
$purifier = new \HTMLPurifier($config); | ||
if ($value != strip_tags($value)) { | ||
$value = $purifier->purify($value); | ||
} | ||
parent::setAttribute($property, $value); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.