phpBMS

Ticket #39: print.php.2.diff

File print.php.2.diff, 0.8 KB (added by ZGAnderson, 6 years ago)

revised with date

  • print.php

     
    113113                                                $fakeExtForIE=""; 
    114114                                                if($reportrecord["type"]=="PDF Report") 
    115115                                                        $fakeExtForIE="&ext=.pdf"; 
     116                                                $dateTimeStamp=date('Ymdhms'); // make the url unique to avoid using browser cache 
    116117                                                //javascript open each report in new window 
    117                                                 $tablePrinter->openwindows.="window.open('".$_SESSION["app_path"].$reportrecord["reportfile"]."?tid=".urlencode($tablePrinter->tableid).$fakeExtForIE."','print".$i."');\n"; 
     118                                                $tablePrinter->openwindows.="window.open('".$_SESSION["app_path"].$reportrecord["reportfile"]."?tid=".urlencode($tablePrinter->tableid).$fakeExtForIE.$dateTimeStamp."','print".$i."');\n"; 
    118119                                        } 
    119120                                } 
    120121                                $tablePrinter->openwindows.="</script>\n"; 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.