phpBMS

Ticket #39: print.php.diff

File print.php.diff, 1.3 KB (added by ZGAnderson, 6 years ago)
Line 
1*** print_orig.php      2006-10-22 21:29:05.000000000 -0700
2--- print.php   2006-10-22 21:35:46.000000000 -0700
3***************
4*** 111,120 ****
5                                                if(!$queryresult) reportError(100,"Could not Retreive Report Information");                             
6                                                $reportrecord=mysql_fetch_array($queryresult); 
7                                                $fakeExtForIE="";
8!                                               if($reportrecord["type"]=="PDF Report")
9                                                        $fakeExtForIE="&ext=.pdf";
10                                                //javascript open each report in new window
11!                                               $tablePrinter->openwindows.="window.open('".$_SESSION["app_path"].$reportrecord["reportfile"]."?tid=".urlencode($tablePrinter->tableid).$fakeExtForIE."','print".$i."');\n";
12                                        }
13                                }
14                                $tablePrinter->openwindows.="</script>\n";
15--- 111,122 ----
16                                                if(!$queryresult) reportError(100,"Could not Retreive Report Information");                             
17                                                $reportrecord=mysql_fetch_array($queryresult); 
18                                                $fakeExtForIE="";
19!                                               if($reportrecord["type"]=="PDF Report"){
20                                                        $fakeExtForIE="&ext=.pdf";
21+                                                       $randomNumber="&random=".rand(0,1000000);
22+                                               }
23                                                //javascript open each report in new window
24!                                               $tablePrinter->openwindows.="window.open('".$_SESSION["app_path"].$reportrecord["reportfile"]."?tid=".urlencode($tablePrinter->tableid).$fakeExtForIE.$$randomNumber."','print".$i."');\n";
25                                        }
26                                }
27                                $tablePrinter->openwindows.="</script>\n";
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.