[Mapbender-commits] r5056 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Dec 1 11:04:36 EST 2009
Author: verenadiewald
Date: 2009-12-01 11:04:35 -0500 (Tue, 01 Dec 2009)
New Revision: 5056
Modified:
trunk/mapbender/http/classes/class_wfs_configuration.php
Log:
check if varname is valid is not necessary while saving
Modified: trunk/mapbender/http/classes/class_wfs_configuration.php
===================================================================
--- trunk/mapbender/http/classes/class_wfs_configuration.php 2009-12-01 16:03:10 UTC (rev 5055)
+++ trunk/mapbender/http/classes/class_wfs_configuration.php 2009-12-01 16:04:35 UTC (rev 5056)
@@ -188,14 +188,14 @@
public function getAuthElement () {
foreach ($this->elementArray as $element) {
if (!empty($element->authVarname)) {
- $validname = preg_match('/^\$_[a-zA-z]+(\[\"[a-zA-Z_]+\"\])?$/', $element->authVarname);
+ #$validname = preg_match('/^\$_[a-zA-z]+(\[\"[a-zA-Z_]+\"\])?$/', $element->authVarname);
- if ($validname === 1) {
+ #if ($validname === 1) {
return $element;
- }
- else {
- $e = new mb_exception("Found auth element, but variable name is not valid: " . $element->authVarname);
- }
+ #}
+ #else {
+ # $e = new mb_exception("Found auth element, but variable name is not valid: " . $element->authVarname);
+ #}
}
}
return null;
More information about the Mapbender_commits
mailing list