aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-06 18:14:11 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-06 18:14:11 -0700
commit66a6fd8df07ea18de77c640a7ae08c2a3f630c85 (patch)
tree05aa1d7e0c4ecca21dfc80992f6df302f82b93af
parentc7c3db8c54ada33c785a7303de582a3d0c1a14ee (diff)
downloadvolse-hubzilla-66a6fd8df07ea18de77c640a7ae08c2a3f630c85.tar.gz
volse-hubzilla-66a6fd8df07ea18de77c640a7ae08c2a3f630c85.tar.bz2
volse-hubzilla-66a6fd8df07ea18de77c640a7ae08c2a3f630c85.zip
more instrumentation
-rw-r--r--.htaccess4
-rw-r--r--include/dba.php4
-rw-r--r--mod/dfrn_notify.php4
3 files changed, 10 insertions, 2 deletions
diff --git a/.htaccess b/.htaccess
index eb30198bb..e17ea00b2 100644
--- a/.htaccess
+++ b/.htaccess
@@ -2,6 +2,10 @@
Options -Indexes
AddType application/x-java-archive .jar
+<FilesMatch "\.out">
+Deny from all
+</FilesMatch>
+
<IfModule mod_rewrite.c>
RewriteEngine on
diff --git a/include/dba.php b/include/dba.php
index 9e44db5fb..0e790d4c1 100644
--- a/include/dba.php
+++ b/include/dba.php
@@ -57,6 +57,10 @@ class dba {
break;
}
}
+ else {
+ if(($result === false) && (file_exists('dbfail.out')))
+ file_put_contents('dbfail.out', printable($sql) . ' returned false' . "\n", FILE_APPEND);
+ }
if(($result === true) || ($result === false))
return $result;
diff --git a/mod/dfrn_notify.php b/mod/dfrn_notify.php
index d657b1f88..4a23da505 100644
--- a/mod/dfrn_notify.php
+++ b/mod/dfrn_notify.php
@@ -117,8 +117,8 @@ function dfrn_notify_post(&$a) {
'$username' => $importer['username'],
'$email' => $importer['email'],
'$from' => $msg['from-name'],
- '$title' => $msg['title'],
- '$body' => strip_tags(bbcode($msg['body']))
+ '$title' => stripslashes($msg['title']),
+ '$body' => strip_tags(bbcode(stripslashes($msg['body'])))
));
$res = mail($importer['email'], t('New mail received at ') . $a->config['sitename'],