aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-05 19:56:09 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-05 19:56:09 -0700
commit036964de4d86f0109ece00cc9394b2a044c06c1e (patch)
tree33984d7f196e3e2ca04feeee786e36338883b814 /boot.php
parent1b3501899289fc6cdbb04a0a0b918e151b4fe853 (diff)
downloadvolse-hubzilla-036964de4d86f0109ece00cc9394b2a044c06c1e.tar.gz
volse-hubzilla-036964de4d86f0109ece00cc9394b2a044c06c1e.tar.bz2
volse-hubzilla-036964de4d86f0109ece00cc9394b2a044c06c1e.zip
friend acceptance sets up lots of important stuff, so we
need to be absolutely bulletproof when (not if) things go wrong.
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/boot.php b/boot.php
index 2e3480f40..7bf3e75a6 100644
--- a/boot.php
+++ b/boot.php
@@ -248,7 +248,9 @@ function check_config(&$a) {
// $s is the string requiring macro substitution.
// $r is an array of key value pairs (search => replace)
// returns substituted string.
-
+// WARNING: this is pretty basic, and doesn't properly handle search strings that are substrings of each other.
+// For instance if 'test' => "foo" and 'testing' => "bar", testing could become either bar or fooing,
+// depending on the order in which they were declared in the array.
if(! function_exists('replace_macros')) {
function replace_macros($s,$r) {