X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FCache%2FJSONCache.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FCache%2FJSONCache.php;h=5f5c8ffd9745b6bb8f9e5ed1e56f373d2cd5ce96;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/vendor/drush/drush/src/Cache/JSONCache.php b/vendor/drush/drush/src/Cache/JSONCache.php new file mode 100644 index 000000000..5f5c8ffd9 --- /dev/null +++ b/vendor/drush/drush/src/Cache/JSONCache.php @@ -0,0 +1,32 @@ + and &, so we do it with str_replace(). + $json = str_replace(['<', '>', '&'], ['\u003c', '\u003e', '\u0026'], $json); + return file_put_contents($filename, $json); + } +}