Skip to content

Commit

Permalink
2.2.8
Browse files Browse the repository at this point in the history
Hide cgsecure/htaccess.php line in abuseip message
  • Loading branch information
conseilgouz committed Mar 28, 2023
1 parent f4c2bf7 commit 0e9825d
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cgsecureinstaller.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>2.2.6</version>
<version>2.2.8</version>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<description>CG Secure</description>
<scriptfile>script.install.php</scriptfile>
Expand Down
11 changes: 11 additions & 0 deletions com_cgsecure_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
<changelogs>
<changelog>
<element>com_cgsecure</element>
<type>package</type>
<version>2.2.8</version>
<note>
<item>Update : 28/03/2023</item>
</note>
<fix>
<item>Hide cgsecure/htaccess.php line in abuseip message </item>
</fix>
</changelog>
<changelog>
<element>com_cgsecure</element>
<type>package</type>
Expand Down
2 changes: 1 addition & 1 deletion packages/com_cgsecure/admin/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>www.conseilgouz.com</authorUrl>
<copyright>Copyright (C) 2023 ConseilGouz.com. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>2.2.7</version>
<version>2.2.8</version>
<namespace path="src">ConseilGouz\Component\CGSecure</namespace>
<description>COM_CGSECURE_XML_DESCRIPTION</description>
<install>
Expand Down
2 changes: 1 addition & 1 deletion packages/com_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<authorUrl>www.conseilgouz.com</authorUrl>
<copyright>Copyright (C) 2023 ConseilGouz.com. All Rights Reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<version>2.2.7</version>
<version>2.2.8</version>
<namespace path="src">ConseilGouz\Component\CGSecure</namespace>
<description>COM_CGSECURE_XML_DESCRIPTION</description>
<install>
Expand Down
2 changes: 1 addition & 1 deletion packages/library_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<name>CGSecure Library</name>
<libraryname>cgsecure</libraryname>
<author>ConseilGouz</author>
<version>2.2.7</version>
<version>2.2.8</version>
<creationDate>2023-03-28</creationDate>
<copyright>(C)2023 ConseilGouz. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
Expand Down
2 changes: 1 addition & 1 deletion packages/plg_authentication_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>2.2.7</version>
<version>2.2.8</version>
<description>PLG_AUTH_COUNTRY_XML_DESCRIPTION</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down
2 changes: 1 addition & 1 deletion packages/plg_system_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>2.2.7</version>
<version>2.2.8</version>
<description>CG_SECURE_DESC</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down
6 changes: 3 additions & 3 deletions packages/plg_system_cgsecure/htaccess.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* @component CG Secure
* Version 2.2.6
* Version 2.2.8
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
* @copyright (C) 2023 ConseilGouz. All Rights Reserved.
* @author ConseilGouz
Expand Down Expand Up @@ -86,8 +86,8 @@
$block = "";
if (isset($_SERVER['REDIRECT_STATUS'])) {
$req = htmlspecialchars($_SERVER['REQUEST_URI'], ENT_QUOTES); // sanitize command
if (strpos('cgsecure/htaccess',$req) !== false) $req = "..."; // lost URI in redirect
$line = substr($req,0,100);
if (strpos($req,'cgsecure/htaccess') !== false) $req = "..."; // lost URI in redirect
$line = substr($req,0,100); // else show entered line
$compl = (strlen($req) < 101) ? '' : '...';
foreach ($_GET as $key => $value) {
if (($key == "sec") && ($value == $security)) $ctl = true;
Expand Down
2 changes: 1 addition & 1 deletion packages/plg_user_cgsecure/cgsecure.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>www.conseilgouz.com</authorUrl>
<version>2.2.6</version>
<version>2.2.8</version>
<description>CG_COUNTRY_XML_DESCRIPTION</description>
<files>
<filename plugin="cgsecure">cgsecure.php</filename>
Expand Down

0 comments on commit 0e9825d

Please sign in to comment.