Module: nagvis Branch: master Commit: 3907fcc7d7c4b0be203967772b0ec839ca6b5f8e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=3907fcc7d7c4b0be203967772b0ec839ca6b5f8e
Author: Lars Michelsen <[email protected]> Date: Mon Jun 28 20:04:47 2010 +0200 Automap url parsing is less strict now --- share/server/core/classes/NagVisAutoMap.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/NagVisAutoMap.php b/share/server/core/classes/NagVisAutoMap.php index 520bcc7..82757a7 100644 --- a/share/server/core/classes/NagVisAutoMap.php +++ b/share/server/core/classes/NagVisAutoMap.php @@ -421,7 +421,7 @@ class NagVisAutoMap extends GlobalMap { $sLine = str_replace('-', '-', $sLine); // Extract the area objects // Only parsing rect/polys at the moment - if(preg_match('/^<area\sshape="(rect|poly)"\s(id="[^"]+"\s)?href=".+\/status\.cgi\?host=([^"]+)"\starget="[a-zA-Z-_]*"\stitle="[^"]+"\salt=""\scoords="([^"]+)"\/>$/i', $sLine, $aMatches)) { + if(preg_match('/^<area\sshape="(rect|poly)"\s(id="[^"]+"\s)?href=".+\?host=([^"]+)"\starget="[a-zA-Z-_]*"\stitle="[^"]+"\salt=""\scoords="([^"]+)"\/>$/i', $sLine, $aMatches)) { if(isset($aMatches[1]) && isset($aMatches[2]) && isset($aMatches[3]) && isset($aMatches[4])) { $type = $aMatches[1]; $name1 = str_replace('-', '-', trim($aMatches[3])); ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
