From 8e91958f56a6e60b53fc812e5f7028f5205c7100 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Fri, 8 Nov 2019 21:02:10 +0100 Subject: =?UTF-8?q?zadevi=20in=20telesu=20zbri=C5=A1em=201.=20in=20zadnji?= =?UTF-8?q?=20znak,=20so=20presledki=20pri=20fetchsporocilo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.php b/main.php index c7c4866..ad810c3 100644 --- a/main.php +++ b/main.php @@ -54,7 +54,7 @@ Errors: class gimsisextClient { private $username; private $password; - public $version = array(0, 7, 3); + public $version = array(0, 7, 4); private $programname = "gimsisextclient"; private $programdomain = 'gimsisextclient.gimb.tk'; private $cookiedir; // set at runtime, ker je get_curerent_user, v login() @@ -521,7 +521,7 @@ Errors: foreach($dn->getElementsByTagName('div') as $sn) { switch($sn->getAttribute("class")) { case "msgSubjectS": - $msg['zadeva'] = str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))); + $msg['zadeva'] = substr(str_replace("\n", null, str_replace("\r", null, str_replace(" ", null, DOMinnerHTML($sn)))), 1, -1); break; } } @@ -533,7 +533,7 @@ Errors: $msg['ura'] = explode(" ", get_string_between(DOMinnerHTML($divn->getElementsByTagName('span')[0]), "(", ")"))[1]; $msg['prejemnik'] = DOMinnerHTML($divn->getElementsByTagName('span')[1]); } elseif ($divn->getAttribute("class") == "gCursorAuto") { - $msg['telo'] = explode("
", DOMinnerHTML($divn))[0]; + $msg['telo'] = substr(explode("
", DOMinnerHTML($divn))[0], 1, -1); } } } -- cgit v1.2.3