diff options
author | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:19 -0500 |
commit | b235c59d60472f818a9142c0886b95a0ff4191d7 (patch) | |
tree | d323c55587584b19cc43a03f58a178823f12d3cd /linden/indra/newview/llweb.cpp | |
parent | Second Life viewer sources 1.18.5.3 (diff) | |
download | meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.zip meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.gz meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.bz2 meta-impy-b235c59d60472f818a9142c0886b95a0ff4191d7.tar.xz |
Second Life viewer sources 1.18.6.0-RC
Diffstat (limited to 'linden/indra/newview/llweb.cpp')
-rw-r--r-- | linden/indra/newview/llweb.cpp | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/linden/indra/newview/llweb.cpp b/linden/indra/newview/llweb.cpp index 7ee4869..eac24ce 100644 --- a/linden/indra/newview/llweb.cpp +++ b/linden/indra/newview/llweb.cpp | |||
@@ -40,14 +40,20 @@ | |||
40 | #include "llviewercontrol.h" | 40 | #include "llviewercontrol.h" |
41 | 41 | ||
42 | // static | 42 | // static |
43 | void LLWeb::loadURL(std::string url) | 43 | void LLWeb::initClass() |
44 | { | ||
45 | LLAlertDialog::setURLLoader(&sAlertURLLoader); | ||
46 | } | ||
47 | |||
48 | // static | ||
49 | void LLWeb::loadURL(const std::string& url) | ||
44 | { | 50 | { |
45 | loadURLExternal(url); | 51 | loadURLExternal(url); |
46 | } | 52 | } |
47 | 53 | ||
48 | 54 | ||
49 | // static | 55 | // static |
50 | void LLWeb::loadURLExternal(std::string url) | 56 | void LLWeb::loadURLExternal(const std::string& url) |
51 | { | 57 | { |
52 | std::string escaped_url = escapeURL(url); | 58 | std::string escaped_url = escapeURL(url); |
53 | #if LL_LIBXUL_ENABLED | 59 | #if LL_LIBXUL_ENABLED |
@@ -57,7 +63,7 @@ void LLWeb::loadURLExternal(std::string url) | |||
57 | 63 | ||
58 | 64 | ||
59 | // static | 65 | // static |
60 | std::string LLWeb::escapeURL(std::string url) | 66 | std::string LLWeb::escapeURL(const std::string& url) |
61 | { | 67 | { |
62 | // The CURL curl_escape() function escapes colons, slashes, | 68 | // The CURL curl_escape() function escapes colons, slashes, |
63 | // and all characters but A-Z and 0-9. Do a cheesy mini-escape. | 69 | // and all characters but A-Z and 0-9. Do a cheesy mini-escape. |
@@ -81,3 +87,12 @@ std::string LLWeb::escapeURL(std::string url) | |||
81 | } | 87 | } |
82 | return escaped_url; | 88 | return escaped_url; |
83 | } | 89 | } |
90 | |||
91 | // virtual | ||
92 | void LLWeb::URLLoader::load(const std::string& url) | ||
93 | { | ||
94 | loadURL(url); | ||
95 | } | ||
96 | |||
97 | // static | ||
98 | LLWeb::URLLoader LLWeb::sAlertURLLoader; | ||