Skip to content

Commit 5fb48b1

Browse files
committed
Made link to security page friendlier
1 parent ce229bb commit 5fb48b1

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

doc.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,7 @@ void CMUSHclientDoc::SetUpOutputWindow (void)
783783
"deepskyblue", "black", TRUE);
784784
Note ("");
785785
Tell (Translate ("Can you trust your plugins? See: "));
786-
Hyperlink ("http://mushclient.com/forum/?id=10503",
787-
"Security tips", Translate ("How to trust plugins"),
786+
Hyperlink (SECURITY_URL, SECURITY_URL, Translate ("How to trust plugins"),
788787
"deepskyblue", "black", TRUE);
789788
Note ("");
790789

doc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const CString MUSHCLIENT_VERSION = "4.57"; // Step 2.
3838
#define DOCUMENTATION_PAGE "http://www.gammon.com.au/scripts/doc.php"
3939
#define REGEXP_PAGE "http://www.gammon.com.au/mushclient/regexp.htm"
4040
#define PLUGINS_PAGE "http://www.gammon.com.au/mushclient/plugins/"
41-
41+
#define SECURITY_URL "http://www.gammon.com.au/security"
4242
#define MAX_LINE_WIDTH 500 // max line we will wrap to
4343
#define MAX_RECENT_LINES 200 // maximum recent lines we can use for multi-line triggers
4444

globalregistryoptions.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,12 @@ void CMUSHclientApp::LoadGlobalsFromDatabase (void)
198198
// get Lua initialisation (sandbox) if necessary
199199

200200
if (m_strLuaScript.IsEmpty ())
201+
{
201202
m_strLuaScript = "-- Put Lua initialization code (eg. sandbox) here.\r\n"
202-
"-- Possible sandbox, and security tips: http://mushclient.com/forum/?id=10503\r\n";
203-
203+
"-- Possible sandbox, and security tips: ";
204+
m_strLuaScript += SECURITY_URL;
205+
m_strLuaScript += "\r\n";
206+
} // end of needing to put something in sandbox
204207

205208
} // end of CMUSHclientApp::LoadGlobalsFromDatabase
206209

0 commit comments

Comments
 (0)