Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 99a718a

Browse files
committed
Tweaks to support "dot" character in custom links handle - Fix #905
1 parent 1871b61 commit 99a718a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/src/index_shared.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@
2424
$h = $_GET['minisite_session'];
2525
}
2626

27-
session_name("AjaXplorer_Shared".$h);
27+
session_name("AjaXplorer_Shared".str_replace(".","_",$h));
2828
include("index.php");

core/src/plugins/action.share/class.ShareCenter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -978,9 +978,9 @@ public function initPublicFolder($downloadFolder)
978978
RewriteBase '.$path.'
979979
RewriteCond %{REQUEST_FILENAME} !-f
980980
RewriteCond %{REQUEST_FILENAME} !-d
981-
RewriteRule ^([a-zA-Z0-9_-]+)\.php$ share.php?hash=$1 [QSA]
982-
RewriteRule ^([a-zA-Z0-9_-]+)--([a-z]+)$ share.php?hash=$1&lang=$2 [QSA]
983-
RewriteRule ^([a-zA-Z0-9_-]+)$ share.php?hash=$1 [QSA]
981+
RewriteRule ^([.a-zA-Z0-9_-]+)\.php$ share.php?hash=$1 [QSA]
982+
RewriteRule ^([.a-zA-Z0-9_-]+)--([a-z]+)$ share.php?hash=$1&lang=$2 [QSA]
983+
RewriteRule ^([.a-zA-Z0-9_-]+)$ share.php?hash=$1 [QSA]
984984
</IfModule>
985985
';
986986
file_put_contents($downloadFolder."/.htaccess", $htaccessContent);
@@ -1051,7 +1051,7 @@ public static function loadMinisite($data, $hash = '', $error = null)
10511051
if(isSet($_GET["dl"]) && isSet($_GET["file"])){
10521052
AuthService::$useSession = false;
10531053
}else{
1054-
session_name("AjaXplorer_Shared".$hash);
1054+
session_name("AjaXplorer_Shared".str_replace(".","_",$hash));
10551055
session_start();
10561056
AuthService::disconnect();
10571057
}

0 commit comments

Comments
 (0)