aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-30 18:46:34 -0700
committerFriendika <info@friendika.com>2011-08-30 18:46:34 -0700
commitf8da48a880f8b01e2284610e74fe3b2b6ec2dc39 (patch)
tree12168072ceb9bfd533b60564310bbfb73fdf2d0d
parent0f1bc6e9571e367b37246e43ce08921bf317fa7c (diff)
downloadvolse-hubzilla-f8da48a880f8b01e2284610e74fe3b2b6ec2dc39.tar.gz
volse-hubzilla-f8da48a880f8b01e2284610e74fe3b2b6ec2dc39.tar.bz2
volse-hubzilla-f8da48a880f8b01e2284610e74fe3b2b6ec2dc39.zip
unsafe chars in admin, add img to diaspora markdown processor
-rw-r--r--boot.php2
-rw-r--r--include/bb2diaspora.php1
-rw-r--r--mod/admin.php2
3 files changed, 3 insertions, 2 deletions
diff --git a/boot.php b/boot.php
index 46f1e318c..5c5dc1861 100644
--- a/boot.php
+++ b/boot.php
@@ -7,7 +7,7 @@ require_once('include/text.php');
require_once("include/pgettext.php");
-define ( 'FRIENDIKA_VERSION', '2.2.1087' );
+define ( 'FRIENDIKA_VERSION', '2.2.1088' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1084 );
diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php
index 7f7b8748d..066d7bfff 100644
--- a/include/bb2diaspora.php
+++ b/include/bb2diaspora.php
@@ -17,6 +17,7 @@ function diaspora2bb($s) {
$s = preg_replace("/\_(.+?)\_/", '[i]$1[/i]', $s);
$s = str_replace(array('-^doublestar^-','-^doublescore-^','-^star^-','-^score^-'), array('**','__','*','_'), $s);
$s = preg_replace('/\[(.+?)\]\((.+?)\)/','[url=$2]$1[/url]',$s);
+ $s = preg_replace('/\!\[(.+?)\]\((.+?)\)/','[img]$2[/img]',$s);
$s = escape_tags($s);
return $s;
diff --git a/mod/admin.php b/mod/admin.php
index 7799e64ab..72544ee70 100644
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -344,7 +344,7 @@ function admin_page_site(&$a) {
* Users admin page
*/
function admin_page_users_post(&$a){
- $pending = ( x(£_POST, 'pending') ? $_POST['pending'] : Array() );
+ $pending = ( x($_POST, 'pending') ? $_POST['pending'] : Array() );
$users = ( x($_POST, 'user') ? $_POST['user'] : Array() );
if (x($_POST,'page_users_block')){