Module: nagvis
Branch: master
Commit: 448f8f201641b2f8eb6a8e99d9bf9357f093332e
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=448f8f201641b2f8eb6a8e99d9bf9357f093332e

Author: Lars Michelsen <[email protected]>
Date:   Tue May 25 18:33:40 2010 +0200

#293 Denying images with spaces in names now

---

 share/server/core/defines/matches.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/share/server/core/defines/matches.php 
b/share/server/core/defines/matches.php
index 4cf06fa..afd19b0 100644
--- a/share/server/core/defines/matches.php
+++ b/share/server/core/defines/matches.php
@@ -45,8 +45,8 @@ define('MATCH_BOOLEAN_EMPTY', '/^(?:1|0)*$/i');
 
 define('MATCH_COLOR', '/^(#?[0-9a-f]{3,6}|transparent)$/i');
 define('MATCH_OBJECTTYPE', 
'/^(?:global|host|service|hostgroup|servicegroup|map|textbox|shape|line|template)$/i');
-define('MATCH_PNGFILE', '/^(.+)\.png$/i');
-define('MATCH_PNG_GIF_JPG_FILE', '/^(.+)\.(png|gif|jpg)$/i');
+define('MATCH_PNGFILE', '/^([^\s]+)\.png$/i');
+define('MATCH_PNG_GIF_JPG_FILE', '/^([^\s]+)\.(png|gif|jpg)$/i');
 define('MATCH_PNG_GIF_JPG_FILE_OR_URL_NONE', 
'/^((.+)\.(png|gif|jpg)|\[[0-9a-z\s\:\+\[\]\(\)\=\%\?\&\_\.\-...@\=\/\\\]+\]|none)$/i');
 define('MATCH_PNG_GIF_JPG_FILE_OR_URL', 
'/^((.+)\.(png|gif|jpg)|\[[0-9a-z\s\:\+\[\]\(\)\=\%\?\&\_\.\-...@\=\/\\\]+\])$/i');
 define('MATCH_ROTATION_STEP_TYPES_EMPTY', '/^(?:map|automap|url)?$/');


------------------------------------------------------------------------------

_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to