gabrielbull / php-ups-api

PHP Wrapper for all UPS API
MIT License
456 stars 255 forks source link

add htmlspecialchars to escape & characters to solve issue 374 #375

Open Nemo64 opened 1 year ago

Nemo64 commented 1 year ago

This is not really a nice fix. It's just a search and replace for all createElement calls that adds htmlspecialchars everywhere

These were the patterns executed: createElement\(([^,()]+\,\s*)(\$([^,;()]+|\([^;()]*\))+)\) createElement($1($2) !== null ? htmlspecialchars($2) : null)