cubecart / v6

CubeCart Version 6
https://cubecart.com
71 stars 59 forks source link

PHP Script Header in Script #3521

Closed bhsmither closed 3 months ago

bhsmither commented 4 months ago

Bizarre!

In orders.index.inc.php, near line 661, there is:

$cleanup = '<?php unlink(__FILE__); ?>';

Normally, prepending // in front will comment out that line and PHP should ignore it.

But no! Doing this causes, in this particular instance, PHP to complain about an unclosed brace at line 568.

Doing this:

/* $cleanup = '<?php unlink(__FILE__); ?>'; */

works.

Just something to be aware of.

abrookbanks commented 3 months ago

That is weird! Thanks for sharing.