summaryrefslogtreecommitdiffabout
authorMichael Krelin <hacker@klever.net>2005-04-25 17:07:02 (UTC)
committer Michael Krelin <hacker@klever.net>2005-04-25 17:07:02 (UTC)
commit33efe232e5ed39c2dcb486fc1c381f09654c0126 (patch) (unidiff)
tree967b0c795cc8c407234640ed196c18c259394f6a
parentdc836540970e798a91ae9460690e4462365e770a (diff)
downloadsitecing-33efe232e5ed39c2dcb486fc1c381f09654c0126.zip
sitecing-33efe232e5ed39c2dcb486fc1c381f09654c0126.tar.gz
sitecing-33efe232e5ed39c2dcb486fc1c381f09654c0126.tar.bz2
1. -svn-ed version
2. made changes necessary to get along well with recent konforka-sitecing changes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--configure.ac2
-rw-r--r--htdocs/handlers/exception_dev7
-rw-r--r--htdocs/sources.chtml5
-rw-r--r--htdocs/view.chtml9
4 files changed, 13 insertions, 10 deletions
diff --git a/configure.ac b/configure.ac
index e60f519..80f6321 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,2 +1,2 @@
1AC_INIT([sitecing-showcase], [0.0.1], [sitecing-bugs@klever.net]) 1AC_INIT([sitecing-showcase], [0.0.1-svn], [sitecing-bugs@klever.net])
2AC_CONFIG_SRCDIR([htdocs/index.chtml]) 2AC_CONFIG_SRCDIR([htdocs/index.chtml])
diff --git a/htdocs/handlers/exception_dev b/htdocs/handlers/exception_dev
index d8c84e1..d62f462 100644
--- a/htdocs/handlers/exception_dev
+++ b/htdocs/handlers/exception_dev
@@ -12,2 +12,3 @@
12 #include <sitecing/magic.h> 12 #include <sitecing/magic.h>
13 #include <konforka/util.h>
13 #include <konforka/exception.h> 14 #include <konforka/exception.h>
@@ -256,3 +257,3 @@
256 if((oel>0 && !oef.empty()) && (oel!=error_line || oef!=error_file)) { 257 if((oel>0 && !oef.empty()) && (oel!=error_line || oef!=error_file)) {
257 string ef = "/"+sitecing::combine_path(root_source+component,oef); 258 string ef = "/"+konforka::combine_path(root_source+component,oef);
258 report_error(ef,oel,remove_roots(cumulative)); 259 report_error(ef,oel,remove_roots(cumulative));
@@ -266,3 +267,3 @@
266 if(!(cumulative.empty() || error_file.empty() || error_line<0)) { 267 if(!(cumulative.empty() || error_file.empty() || error_line<0)) {
267 error_file = "/"+sitecing::combine_path(root_source+component,error_file); 268 error_file = "/"+konforka::combine_path(root_source+component,error_file);
268 report_error(error_file,error_line,remove_roots(cumulative)); 269 report_error(error_file,error_line,remove_roots(cumulative));
@@ -320,3 +321,3 @@
320<%codemethod string strip_roots(const string& filename) %> 321<%codemethod string strip_roots(const string& filename) %>
321 string np = sitecing::normalize_path(filename); 322 string np = konforka::normalize_path(filename);
322 try{ 323 try{
diff --git a/htdocs/sources.chtml b/htdocs/sources.chtml
index 268b0e0..57a03e9 100644
--- a/htdocs/sources.chtml
+++ b/htdocs/sources.chtml
@@ -6,2 +6,3 @@
6 #include <sitecing/sitecing_util.h> 6 #include <sitecing/sitecing_util.h>
7 #include <konforka/util.h>
7</%impl> 8</%impl>
@@ -33,5 +34,5 @@
33 <%code> 34 <%code>
34 string rfile = sitecing::normalize_path( 35 string rfile = konforka::normalize_path(
35 sitecing::strip_prefix(__CGI->get_meta("PATH_INFO"),"/sources.chtml"), 36 sitecing::strip_prefix(__CGI->get_meta("PATH_INFO"),"/sources.chtml"),
36 sitecing::restrict_dotdot|sitecing::strip_leading_slash ); 37 konforka::restrict_dotdot|konforka::strip_leading_slash );
37 if(rfile.empty()) 38 if(rfile.empty())
diff --git a/htdocs/view.chtml b/htdocs/view.chtml
index f729465..809c54f 100644
--- a/htdocs/view.chtml
+++ b/htdocs/view.chtml
@@ -10,2 +10,3 @@
10 #include <sitecing/sitecing_util.h> 10 #include <sitecing/sitecing_util.h>
11 #include <konforka/util.h>
11 #include <konforka/exception.h> 12 #include <konforka/exception.h>
@@ -18,5 +19,5 @@
18 <%code> 19 <%code>
19 string rfile = sitecing::normalize_path( 20 string rfile = konforka::normalize_path(
20 sitecing::strip_prefix(__CGI->get_meta("PATH_INFO"),"/view.chtml"), 21 sitecing::strip_prefix(__CGI->get_meta("PATH_INFO"),"/view.chtml"),
21 sitecing::restrict_dotdot|sitecing::strip_leading_slash ); 22 konforka::restrict_dotdot|konforka::strip_leading_slash );
22 sourcefile_t *sof = 0; 23 sourcefile_t *sof = 0;
@@ -25,3 +26,3 @@
25 if(sof->name && sof->dir) { 26 if(sof->name && sof->dir) {
26 if(sitecing::normalize_path(sitecing::combine_path(sof->dir,sof->name,0),sitecing::strip_leading_slash)==rfile) 27 if(konforka::normalize_path(konforka::combine_path(sof->dir,sof->name,0),konforka::strip_leading_slash)==rfile)
27 break; 28 break;
@@ -32,3 +33,3 @@
32 throw konforka::exception(CODEPOINT,"no access to the file allowed"); 33 throw konforka::exception(CODEPOINT,"no access to the file allowed");
33 string afile = sitecing::combine_path(WEB_ROOT,rfile,0); 34 string afile = konforka::combine_path(WEB_ROOT,rfile,0);
34 </%code> 35 </%code>