Skip to content

Commit 3b98d26

Browse files
committed
🐘 php 7.1
🐘 php 7.1
1 parent d5144f2 commit 3b98d26

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

kchat/assets/js/kchat.msgs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,6 @@ function html_notif(not){
446446
}
447447

448448
function toanchor(text) {
449-
var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/i;
450-
return text.replace(exp,"<a href='$1'>$1</a>");
449+
var exp = /(\s(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/igm;
450+
return text.replace(exp,"<a target='_BLANK' href='$1'>$1</a>");
451451
}

kchat/lib/mvc.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ function process($action){
8585
include $path;
8686
$actn = new $action[0]($this->data);
8787
if(method_exists($actn,$action[1])){
88-
return $actn->$action[1]($this->data);
88+
$func = (string)$action[1];
89+
return $actn->$func($this->data);
8990
}
9091
}else{
9192
echo "file Not Found";

0 commit comments

Comments
 (0)