Hi
This fix is not about Social GK5 but to a script in file called displaying articles. Despite of which system are You using it's /html/com_k2/templates/default/item.php or /html/com_content/article/default.php
Just try to find where $cur_url is defined and replace it with one of this:
- Code: Select all
$cur_url = (!empty($_SERVER['HTTPS'])) ? "https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'] : "http://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
or
- Code: Select all
$cur_url = preg_replace("/%([0-9A-Fa-f]{2})/e", "chr(hexdec('\\1'))", htmlspecialchars($cur_url, ENT_QUOTES, 'UTF-8'));
First one is my idea of a fix but not tested and second is what @leonabil suggested and is proven to be correct.