File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,11 @@ function cleanArray($didYouMeans){
178
178
$ FileAll = (new \Nette \PhpGenerator \Extractor (file_get_contents ($ file )))->extractAll ();
179
179
$ code = (new \Nette \PhpGenerator \PsrPrinter )->printFile ($ FileAll );
180
180
181
- if (isset ($ _SERVER ['HTTP_X_SOURCE_ENCODING ' ]) && 'b64 ' === $ _SERVER ['HTTP_X_SOURCE_ENCODING ' ] ){
181
+
182
+ if ((isset ($ _SERVER ['HTTP_X_SOURCE_ENCODING ' ]) && 'b64 ' === $ _SERVER ['HTTP_X_SOURCE_ENCODING ' ])
183
+ ||
184
+ (isset ($ _GET ['source-encoding ' ]) && 'b64 ' === $ _GET ['source-encoding ' ] )
185
+ ){
182
186
$ code = base64_encode ($ code );
183
187
}
184
188
@@ -262,7 +266,11 @@ function cleanArray($didYouMeans){
262
266
$ outPut = file_get_contents ($ file );
263
267
}
264
268
265
- if (isset ($ _SERVER ['HTTP_X_SOURCE_ENCODING ' ]) && 'b64 ' === $ _SERVER ['HTTP_X_SOURCE_ENCODING ' ] ){
269
+
270
+ if ((isset ($ _SERVER ['HTTP_X_SOURCE_ENCODING ' ]) && 'b64 ' === $ _SERVER ['HTTP_X_SOURCE_ENCODING ' ])
271
+ ||
272
+ (isset ($ _GET ['source-encoding ' ]) && 'b64 ' === $ _GET ['source-encoding ' ] )
273
+ ){
266
274
$ outPut = base64_encode ($ outPut );
267
275
}
268
276
You can’t perform that action at this time.
0 commit comments