Fossil SCM

Rename the 'http-allow-regexp' setting to 'th1-uri-regexp'.

mistachkin 2013-10-14 04:15 UTC tkt-change-hook
Commit aeedba68b656feb53513233874e2b1ff08bcfdac
2 files changed +5 -5 +1 -1
+5 -5
--- src/db.c
+++ src/db.c
@@ -2121,11 +2121,11 @@
21212121
{ "editor", 0, 32, 0, "" },
21222122
{ "empty-dirs", 0, 40, 1, "" },
21232123
{ "encoding-glob", 0, 40, 1, "" },
21242124
{ "gdiff-command", 0, 40, 0, "gdiff" },
21252125
{ "gmerge-command",0, 40, 0, "" },
2126
- { "http-allow-regexp",0, 40, 0, "" },
2126
+ { "th1-uri-regexp",0, 40, 0, "" },
21272127
{ "http-port", 0, 16, 0, "8080" },
21282128
{ "https-login", 0, 0, 0, "off" },
21292129
{ "ignore-glob", 0, 40, 1, "" },
21302130
{ "keep-glob", 0, 40, 1, "" },
21312131
{ "localauth", 0, 0, 0, "off" },
@@ -2252,14 +2252,10 @@
22522252
** on four files.
22532253
** Ex: kdiff3 "%baseline" "%original" "%merge" -o "%output"
22542254
** Ex: xxdiff "%original" "%baseline" "%merge" -M "%output"
22552255
** Ex: meld "%baseline" "%original" "%merge" "%output"
22562256
**
2257
-** http-allow-regexp Specify which URL's are allowed in http requests for
2258
-** commit and ticket hooks. If empty, no http requests
2259
-** are allowed whatsoever. Default: "".
2260
-**
22612257
** http-port The TCP/IP port number to use by the "server"
22622258
** and "ui" commands. Default: 8080
22632259
**
22642260
** https-login Send login credentials using HTTPS instead of HTTP
22652261
** even if the login page request came via HTTP.
@@ -2344,10 +2340,14 @@
23442340
** is empty and no extra setup is performed.
23452341
**
23462342
** th1-setup This is the setup script to be evaluated after creating
23472343
** and initializing the TH1 interpreter. By default, this
23482344
** is empty and no extra setup is performed.
2345
+**
2346
+** th1-uri-regexp Specify which URI's are allowed in HTTP requests from
2347
+** TH1 scripts. If empty, no HTTP requests are allowed
2348
+** whatsoever. The default is an empty string.
23492349
**
23502350
** web-browser A shell command used to launch your preferred
23512351
** web browser when given a URL as an argument.
23522352
** Defaults to "start" on windows, "open" on Mac,
23532353
** and "firefox" on Unix.
23542354
--- src/db.c
+++ src/db.c
@@ -2121,11 +2121,11 @@
2121 { "editor", 0, 32, 0, "" },
2122 { "empty-dirs", 0, 40, 1, "" },
2123 { "encoding-glob", 0, 40, 1, "" },
2124 { "gdiff-command", 0, 40, 0, "gdiff" },
2125 { "gmerge-command",0, 40, 0, "" },
2126 { "http-allow-regexp",0, 40, 0, "" },
2127 { "http-port", 0, 16, 0, "8080" },
2128 { "https-login", 0, 0, 0, "off" },
2129 { "ignore-glob", 0, 40, 1, "" },
2130 { "keep-glob", 0, 40, 1, "" },
2131 { "localauth", 0, 0, 0, "off" },
@@ -2252,14 +2252,10 @@
2252 ** on four files.
2253 ** Ex: kdiff3 "%baseline" "%original" "%merge" -o "%output"
2254 ** Ex: xxdiff "%original" "%baseline" "%merge" -M "%output"
2255 ** Ex: meld "%baseline" "%original" "%merge" "%output"
2256 **
2257 ** http-allow-regexp Specify which URL's are allowed in http requests for
2258 ** commit and ticket hooks. If empty, no http requests
2259 ** are allowed whatsoever. Default: "".
2260 **
2261 ** http-port The TCP/IP port number to use by the "server"
2262 ** and "ui" commands. Default: 8080
2263 **
2264 ** https-login Send login credentials using HTTPS instead of HTTP
2265 ** even if the login page request came via HTTP.
@@ -2344,10 +2340,14 @@
2344 ** is empty and no extra setup is performed.
2345 **
2346 ** th1-setup This is the setup script to be evaluated after creating
2347 ** and initializing the TH1 interpreter. By default, this
2348 ** is empty and no extra setup is performed.
 
 
 
 
2349 **
2350 ** web-browser A shell command used to launch your preferred
2351 ** web browser when given a URL as an argument.
2352 ** Defaults to "start" on windows, "open" on Mac,
2353 ** and "firefox" on Unix.
2354
--- src/db.c
+++ src/db.c
@@ -2121,11 +2121,11 @@
2121 { "editor", 0, 32, 0, "" },
2122 { "empty-dirs", 0, 40, 1, "" },
2123 { "encoding-glob", 0, 40, 1, "" },
2124 { "gdiff-command", 0, 40, 0, "gdiff" },
2125 { "gmerge-command",0, 40, 0, "" },
2126 { "th1-uri-regexp",0, 40, 0, "" },
2127 { "http-port", 0, 16, 0, "8080" },
2128 { "https-login", 0, 0, 0, "off" },
2129 { "ignore-glob", 0, 40, 1, "" },
2130 { "keep-glob", 0, 40, 1, "" },
2131 { "localauth", 0, 0, 0, "off" },
@@ -2252,14 +2252,10 @@
2252 ** on four files.
2253 ** Ex: kdiff3 "%baseline" "%original" "%merge" -o "%output"
2254 ** Ex: xxdiff "%original" "%baseline" "%merge" -M "%output"
2255 ** Ex: meld "%baseline" "%original" "%merge" "%output"
2256 **
 
 
 
 
2257 ** http-port The TCP/IP port number to use by the "server"
2258 ** and "ui" commands. Default: 8080
2259 **
2260 ** https-login Send login credentials using HTTPS instead of HTTP
2261 ** even if the login page request came via HTTP.
@@ -2344,10 +2340,14 @@
2340 ** is empty and no extra setup is performed.
2341 **
2342 ** th1-setup This is the setup script to be evaluated after creating
2343 ** and initializing the TH1 interpreter. By default, this
2344 ** is empty and no extra setup is performed.
2345 **
2346 ** th1-uri-regexp Specify which URI's are allowed in HTTP requests from
2347 ** TH1 scripts. If empty, no HTTP requests are allowed
2348 ** whatsoever. The default is an empty string.
2349 **
2350 ** web-browser A shell command used to launch your preferred
2351 ** web browser when given a URL as an argument.
2352 ** Defaults to "start" on windows, "open" on Mac,
2353 ** and "firefox" on Unix.
2354
+1 -1
--- src/xfer.c
+++ src/xfer.c
@@ -859,11 +859,11 @@
859859
url_parse(argv[1], 0);
860860
if( g.urlIsSsh || g.urlIsFile ){
861861
Th_ErrorMessage(interp, "url must be http:// or https://", 0, 0);
862862
return TH_ERROR;
863863
}
864
- regexp = db_get("http-allow-regexp", 0);
864
+ regexp = db_get("th1-uri-regexp", 0);
865865
if( regexp && regexp[0] ){
866866
const char * zErr = re_compile(&pRe, regexp, 0);
867867
if( zErr ){
868868
Th_SetResult(interp, zErr, -1);
869869
return TH_ERROR;
870870
--- src/xfer.c
+++ src/xfer.c
@@ -859,11 +859,11 @@
859 url_parse(argv[1], 0);
860 if( g.urlIsSsh || g.urlIsFile ){
861 Th_ErrorMessage(interp, "url must be http:// or https://", 0, 0);
862 return TH_ERROR;
863 }
864 regexp = db_get("http-allow-regexp", 0);
865 if( regexp && regexp[0] ){
866 const char * zErr = re_compile(&pRe, regexp, 0);
867 if( zErr ){
868 Th_SetResult(interp, zErr, -1);
869 return TH_ERROR;
870
--- src/xfer.c
+++ src/xfer.c
@@ -859,11 +859,11 @@
859 url_parse(argv[1], 0);
860 if( g.urlIsSsh || g.urlIsFile ){
861 Th_ErrorMessage(interp, "url must be http:// or https://", 0, 0);
862 return TH_ERROR;
863 }
864 regexp = db_get("th1-uri-regexp", 0);
865 if( regexp && regexp[0] ){
866 const char * zErr = re_compile(&pRe, regexp, 0);
867 if( zErr ){
868 Th_SetResult(interp, zErr, -1);
869 return TH_ERROR;
870

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button