Skip to content

Instantly share code, notes, and snippets.

View phirschybar's full-sized avatar

Ben Hirsch phirschybar

View GitHub Profile
@phirschybar
phirschybar / tres117-v2-var-audit.md
Created March 9, 2026 11:36
TRES-117 v2 — Variable Name Audit (escaping conversions)

TRES-117 v2 — Variable Name Audit

PR #7941: Entity escaping site-wide (v2 — clean approach) Total conversions: 125 instances across 45 unique variable/field names What this is: Every variable being converted from unescaped ({!! !!} or {{{ }}}) → escaped ({{ }}) in this PR, grouped by the field/accessor name.


✅ Safe to Escape (text data — no HTML expected)

@phirschybar
phirschybar / review-report-v2.txt
Last active March 7, 2026 23:02
TRES-117: Entity escaping review v2 — post-revert (all current {{{ }}} expressions)
============================================================================================================================================
Array access (608)
============================================================================================================================================
$CURRENCIES[$cart->cart_currency]['symbol']·· v2/checkout/totals.blade.php:14, v2/checkout/totals.blade.php:17, v2/checkout/totals.blade.php:32 +18 more
$CURRENCIES[$currency]['symbol']······························································· v2/checkout/delivery-choices.blade.php:37
$CURRENCIES[$item->product_currency]['symbol']·· v2/checkout/cart-items.blade.php:58, v2/checkout/cart-items.blade.php:104, v2/orders/pdf_receipt.blade.php:83 +18 more
$META['n_brands']··························································································· layouts/screen.blade.php:221
$META['n_brands_rounded']··················································································· lay
@phirschybar
phirschybar / review-report.txt
Last active March 7, 2026 20:18
TRES-117: Entity escaping review — all changes categorized by type
============================================================================================================================================
Array access (526)
============================================================================================================================================
$META['n_brands']··························································································· layouts/screen.blade.php:221
$META['n_brands_rounded']··················································································· layouts/screen.blade.php:264
$META['n_cities']············· layouts/brand-marketing.blade.php:61, layouts/retail-marketing.blade.php:100, layouts/screen.blade.php:214
$META['n_products_rounded']················································································· layouts/screen.blade.php:228
$USER_GEO['city_label']·· v2/home/home-2022.blade.php:143, v2/home/home-2022.blade.php:266, v2/home/home-2022.blade.php:288, v3/decorator/masthead.blade.php:
@phirschybar
phirschybar / gist:bd4ab7edb01f59391018
Created June 14, 2015 12:14
Install S3S3Mirror on Ubuntu

Package s3s3Mirror

sudo apt-get update

sudo apt-get install maven

sudo apt-get install default-jdk

sudo apt-get install screen

{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"index": "index_name",
"from": 0,
"size": 30,
"body": {
"min_score": 0.5,
"_source": {
"include": [
"id",
"name",
{
"product": {
"dynamic" : true,
"properties": {
"name": {
"type": "string",
"analyzer" : "main"
},
"stores": {
"type": "nested",
@phirschybar
phirschybar / gist:2054783
Created March 17, 2012 03:48
Lint error dialog
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Collection extends APP_Controller {
function Collection(){
parent::APP_Controller();
$this->_add_crumb('Collection', '/collection/');