Skip to content

Instantly share code, notes, and snippets.

View tonybyng's full-sized avatar

Tony Byng tonybyng

  • Mobunti Limited
  • United Kingdom
View GitHub Profile
@tonybyng
tonybyng / CleanUpEmails.php
Last active July 27, 2019 10:37 — forked from arkadiyasuratov/CleanupEmails.php
Cleanup Emails in EspoCRM
<?php
/*
Job: CleanUpEmails
System: Espo CRM
Author: Tony Byng
Based from: Arkadywtf github gist: https://gist.github.com/arkadywtf/3a9c4d10f778690b5f0b33e1ba94f699
Following this issue: https://github.com/espocrm/espocrm/issues/1359
Description:
This will look for email records that do not have a parent
@tonybyng
tonybyng / XSSProtection.php
Created August 21, 2017 07:19 — forked from kirkbushell/XSSProtection.php
Laravel 5 XSS protection middleware
class XSSProtection
{
/**
* The following method loops through all request input and strips out all tags from
* the request. This to ensure that users are unable to set ANY HTML within the form
* submissions, but also cleans up input.
*
* @param Request $request
* @param callable $next
* @return mixed