aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2010-07-15 21:14:55 +0100
committerJustin Clark-Casey (justincc)2010-07-15 21:14:55 +0100
commit610a2626a5e60cf5c3511ecf4d4187e9da71d336 (patch)
tree0f8113d49e0cd1195794ef841c04013732d25a97 /OpenSim
parentproperly expose prim media LSL functions to scripts (diff)
downloadopensim-SC-610a2626a5e60cf5c3511ecf4d4187e9da71d336.zip
opensim-SC-610a2626a5e60cf5c3511ecf4d4187e9da71d336.tar.gz
opensim-SC-610a2626a5e60cf5c3511ecf4d4187e9da71d336.tar.bz2
opensim-SC-610a2626a5e60cf5c3511ecf4d4187e9da71d336.tar.xz
Implement * end wildcard for whitelist urls
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
index 4bbac6e..c24e6d5 100644
--- a/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
+++ b/OpenSim/Region/CoreModules/World/Media/Moap/MoapModule.cs
@@ -460,6 +460,10 @@ namespace OpenSim.Region.CoreModules.Media.Moap
460 { 460 {
461 string wlUrl = rawWlUrl; 461 string wlUrl = rawWlUrl;
462 462
463 // Deal with a line-ending wildcard
464 if (wlUrl.EndsWith("*"))
465 wlUrl = wlUrl.Remove(wlUrl.Length - 1);
466
463 if (!wlUrl.StartsWith("http://")) 467 if (!wlUrl.StartsWith("http://"))
464 wlUrl = "http://" + wlUrl; 468 wlUrl = "http://" + wlUrl;
465 469
@@ -467,7 +471,7 @@ namespace OpenSim.Region.CoreModules.Media.Moap
467 471
468 if (url.StartsWith(wlUrl)) 472 if (url.StartsWith(wlUrl))
469 { 473 {
470 m_log.DebugFormat("[MOAP]: Whitelist url {0} matches requested url {1}", wlUrl, url); 474 m_log.DebugFormat("[MOAP]: Whitelist URL {0} matches {1}", wlUrl, url);
471 return true; 475 return true;
472 } 476 }
473 } 477 }