[Mapbender-commits] r6054 - trunk/mapbender/http/print
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Apr 30 10:29:22 EDT 2010
Author: astrid_emde
Date: 2010-04-30 10:29:21 -0400 (Fri, 30 Apr 2010)
New Revision: 6054
Modified:
trunk/mapbender/http/print/printFactory.php
Log:
Modified: trunk/mapbender/http/print/printFactory.php
===================================================================
--- trunk/mapbender/http/print/printFactory.php 2010-04-30 12:08:56 UTC (rev 6053)
+++ trunk/mapbender/http/print/printFactory.php 2010-04-30 14:29:21 UTC (rev 6054)
@@ -8,7 +8,7 @@
$confFile = basename($_REQUEST["printPDF_template"]);
if (!preg_match("/^[a-zA-Z0-9_-]+(\.[a-zA-Z0-9]+)$/", $confFile) ||
- !file_exists($confFile)) {
+ !file_exists($_REQUEST["printPDF_template"])) {
$errorMessage = _mb("Invalid configuration file");
echo htmlentities($errorMessage, ENT_QUOTES, CHARSET);
@@ -16,7 +16,7 @@
die;
}
-$pdf = $pf->create($confFile);
+$pdf = $pf->create($_REQUEST["printPDF_template"]);
$pdf->render();
$pdf->save();
More information about the Mapbender_commits
mailing list