allow links in slack
authorPatrick McGuire <insidenothing@gmail.com>
Mon, 1 Jun 2020 17:40:24 +0000 (13:40 -0400)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 17:40:24 +0000 (13:40 -0400)
slack.php

index 94cae41..3333e39 100644 (file)
--- a/slack.php
+++ b/slack.php
@@ -17,10 +17,10 @@ function slack_general($msg,$room){
        $thisroom = $room;
        $add = "[".$ip."][".$_SERVER['HTTP_USER_AGENT']."][".$_SERVER['PHP_SELF']."] ";
        $msg = $add.$msg;
-       $msg = str_replace('http://','_______',$msg);
-       $msg = str_replace('https://','________',$msg);
-       $msg = str_replace('.net','____',$msg);
-       $msg = str_replace('.com','____',$msg);
+       //$msg = str_replace('http://','_______',$msg);
+       //$msg = str_replace('https://','________',$msg);
+       //$msg = str_replace('.net','____',$msg);
+       //$msg = str_replace('.com','____',$msg);
        $msg = urlencode($msg);
        $token = $slack_api;
        if (isset($_COOKIE['name'])){