aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-22 18:22:41 -0700
committerfriendica <info@friendica.com>2013-05-22 18:22:41 -0700
commitaa1eb2d89e7e4011ed43fdb391e6ced695a9521f (patch)
tree2d45ab19258541d2b771d0ee645b583a0c64630b /boot.php
parent75e4d446ef8d84ba1e07612b9a8a8ec839defb41 (diff)
downloadvolse-hubzilla-aa1eb2d89e7e4011ed43fdb391e6ced695a9521f.tar.gz
volse-hubzilla-aa1eb2d89e7e4011ed43fdb391e6ced695a9521f.tar.bz2
volse-hubzilla-aa1eb2d89e7e4011ed43fdb391e6ced695a9521f.zip
add basic input filtering to the simple activity posting
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/boot.php b/boot.php
index 9e649ca81..80d7fe9d4 100755
--- a/boot.php
+++ b/boot.php
@@ -590,6 +590,13 @@ class App {
startup();
+ set_include_path(
+ 'include' . PATH_SEPARATOR
+ . 'library' . PATH_SEPARATOR
+ . 'library/phpsec' . PATH_SEPARATOR
+ . 'library/langdet' . PATH_SEPARATOR
+ . '.' );
+
$this->scheme = 'http';
if(x($_SERVER,'HTTPS') && $_SERVER['HTTPS'])
@@ -612,13 +619,7 @@ class App {
$this->path = $path;
}
- set_include_path(
- "include/$this->hostname" . PATH_SEPARATOR
- . 'include' . PATH_SEPARATOR
- . 'library' . PATH_SEPARATOR
- . 'library/phpsec' . PATH_SEPARATOR
- . 'library/langdet' . PATH_SEPARATOR
- . '.' );
+ set_include_path("include/$this->hostname" . PATH_SEPARATOR . get_include_path());
if((x($_SERVER,'QUERY_STRING')) && substr($_SERVER['QUERY_STRING'],0,2) === "q=") {
$this->query_string = substr($_SERVER['QUERY_STRING'],2);