Browse Source

keychecks

pull/1/head
Friendika 10 years ago
parent
commit
11ca81adba
2 changed files with 7 additions and 1 deletions
  1. +4
    -0
      include/bb2diaspora.php
  2. +3
    -1
      mod/dfrn_notify.php

+ 4
- 0
include/bb2diaspora.php View File

@ -11,6 +11,10 @@ function diaspora2bb($s) {
$s = preg_replace('/\@\{(.+?)\; (.+?)\@(.+?)\}/','@[url=https://$3/u/$2]$1[/url]',$s);
$s = Markdown($s);
$s = html2bbcode($s);
// $s = preg_replace('/\[url=(.+?)\<em\>(.+?)\]/ism','[url=$1_$2]',$s);
// $s = preg_replace('/\[url=(.+?)\<\/em\>(.+?)\]/ism','[url=$1_$2]',$s);
return $s;
}


+ 3
- 1
mod/dfrn_notify.php View File

@ -849,10 +849,12 @@ function dfrn_notify_content(&$a) {
openssl_private_encrypt($hash,$challenge,$prv_key);
openssl_private_encrypt($id_str,$encrypted_id,$prv_key);
}
else {
elseif(strlen($pub_key)) {
openssl_public_encrypt($hash,$challenge,$pub_key);
openssl_public_encrypt($id_str,$encrypted_id,$pub_key);
}
else
$status = 1;
$challenge = bin2hex($challenge);
$encrypted_id = bin2hex($encrypted_id);


Loading…
Cancel
Save