From 227a777149e0d0e507c15166fda59c27c649ec50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 1 Mar 2020 00:56:01 +0100 Subject: html_entities_decode ne dela, uporabljam str_replace --- main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.php b/main.php index c131280..53cdc43 100644 --- a/main.php +++ b/main.php @@ -75,7 +75,7 @@ Errors: private $username; private $adminusername = "anton.sijanec"; private $password; - public $version = array(0, 10, 1); + public $version = array(0, 10, 2); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -524,7 +524,7 @@ Errors: curl_setopt($ch, CURLOPT_POST, 0); $sporocilo_output = curl_exec($ch); $zadeva = html_entity_decode(get_string_between($sporocilo_output, '')); - $telo = html_entity_decode(html_entity_decode(html_entity_decode(get_string_between($sporocilo_output, "</span></p>", "")))); + $telo = str_replace("'", "'", html_entity_decode(html_entity_decode(get_string_between($sporocilo_output, "</span></p>", "")))); $posiljatelj = html_entity_decode(html_entity_decode(get_string_between($sporocilo_output, "><b>Od</b>: ", "<br /><b>Poslano</b>: "))); // ne trudi se za prejemnika, gimsisglitch(C)12 $datumincas = get_string_between($sporocilo_output, "<br /><b>Poslano</b>: ", "<br /><b>Za</b>: "); // pazi, tale je za ljudi $cas = explode(":", end(explode(" ", $datumincas))); -- cgit v1.2.3