Browse Source

more instrumentation

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
66a6fd8df0
  1. 4
      .htaccess
  2. 4
      include/dba.php
  3. 4
      mod/dfrn_notify.php

4
.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

4
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;

4
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'],

Loading…
Cancel
Save