summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.php b/main.php
index 645be30..8a43ab0 100644
--- a/main.php
+++ b/main.php
@@ -508,9 +508,9 @@ Errors:
$xmlDoc = new DOMDocument();
$xmlDoc->loadHTML( $sporocilo_output );
$textarea = DOMinnerHTML($xmlDoc->getElementById( "ctl00_ModalMasterBody_edtBesediloExt" ));
- $zadeva = get_string_between($sporocilo_output, '<input name="ctl00$ModalMasterBody$edtZadeva" type="text" value="', '" id="ctl00_ModalMasterBody_edtZadeva" />');
- $telo = get_string_between($textarea, "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;", "&lt;/p&gt;\n");
- $posiljatelj = get_string_between($textarea, "&gt;&lt;b&gt;Od&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: "); // ne trudi se za prejemnika, gimsisglitch(C)12
+ $zadeva = html_entity_decode(get_string_between($sporocilo_output, '<input name="ctl00$ModalMasterBody$edtZadeva" type="text" value="', '" id="ctl00_ModalMasterBody_edtZadeva" />'));
+ $telo = html_entity_decode(html_entity_decode(get_string_between($textarea, "&lt;/span&gt;&lt;/p&gt;&lt;p&gt;", "&lt;/p&gt;\n")));
+ $posiljatelj = html_entity_decode(html_entity_decode(get_string_between($textarea, "&gt;&lt;b&gt;Od&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: "))); // ne trudi se za prejemnika, gimsisglitch(C)12
$datumincas = get_string_between($textarea, "&lt;br /&gt;&lt;b&gt;Poslano&lt;/b&gt;: ", "&lt;br /&gt;&lt;b&gt;Za&lt;/b&gt;: "); // pazi, tale je za ljudi
$cas = explode(":", end(explode(" ", $datumincas)));
$datum['dan'] = intval(substr(explode(" ", $datumincas)[0], 0, -1)); // da ni .