@@ -1,16 +1,16 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * ESI DECODER |
|
4 | - * |
|
5 | - * This tool can be used to decode an ESI request. |
|
6 | - * You can just paste the whole ESI URL and push the button to decode it. |
|
7 | - * |
|
8 | - * Make sure you place this utility on a protected spot on your web server where only authorized users can use it. |
|
9 | - * |
|
10 | - * If the URLs you see in "varnishlog" or "varnishncsa" are not working because they are cut off, read this FAQ item: |
|
11 | - * https://github.com/nexcess/magento-turpentine/wiki/FAQ#im-using-varnishncsa-to-generate-logs-and-the-esi-urls-are-cut-off-how-do-i-get-the-full-url-in-the-logs |
|
12 | - * |
|
13 | - */ |
|
3 | + * ESI DECODER |
|
4 | + * |
|
5 | + * This tool can be used to decode an ESI request. |
|
6 | + * You can just paste the whole ESI URL and push the button to decode it. |
|
7 | + * |
|
8 | + * Make sure you place this utility on a protected spot on your web server where only authorized users can use it. |
|
9 | + * |
|
10 | + * If the URLs you see in "varnishlog" or "varnishncsa" are not working because they are cut off, read this FAQ item: |
|
11 | + * https://github.com/nexcess/magento-turpentine/wiki/FAQ#im-using-varnishncsa-to-generate-logs-and-the-esi-urls-are-cut-off-how-do-i-get-the-full-url-in-the-logs |
|
12 | + * |
|
13 | + */ |
|
14 | 14 | |
15 | 15 | $tries = 5; |
16 | 16 | $dir = dirname(__FILE__); |
@@ -56,7 +56,7 @@ |
||
56 | 56 | */ |
57 | 57 | public function renewFormKey() |
58 | 58 | { |
59 | - $this->setData('_form_key', Mage::helper('core')->getRandomString(16)); |
|
59 | + $this->setData('_form_key', Mage::helper('core')->getRandomString(16)); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | /** |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | * |
131 | 131 | * @return string |
132 | 132 | */ |
133 | - protected function _getCustomIncludeFilename($position='') { |
|
133 | + protected function _getCustomIncludeFilename($position = '') { |
|
134 | 134 | $key = 'custom_include_file'; |
135 | 135 | $key .= ($position) ? '_'.$position : ''; |
136 | 136 | return $this->_formatTemplate( |
@@ -1009,7 +1009,7 @@ discard block |
||
1009 | 1009 | $vars['vcl_synth'] = $this->_vcl_sub_synth(); |
1010 | 1010 | } |
1011 | 1011 | |
1012 | - foreach (array('','top') as $position) { |
|
1012 | + foreach (array('', 'top') as $position) { |
|
1013 | 1013 | $customIncludeFile = $this->_getCustomIncludeFilename($position); |
1014 | 1014 | if (is_readable($customIncludeFile)) { |
1015 | 1015 | $key = 'custom_vcl_include'; |