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

Commit

Permalink
Tweaks to support "dot" character in custom links handle - Fix #905
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 16, 2015
1 parent 1871b61 commit 99a718a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/index_shared.php
Expand Up @@ -24,5 +24,5 @@
$h = $_GET['minisite_session'];
}

session_name("AjaXplorer_Shared".$h);
session_name("AjaXplorer_Shared".str_replace(".","_",$h));
include("index.php");
8 changes: 4 additions & 4 deletions core/src/plugins/action.share/class.ShareCenter.php
Expand Up @@ -978,9 +978,9 @@ public function initPublicFolder($downloadFolder)
RewriteBase '.$path.'
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)\.php$ share.php?hash=$1 [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)--([a-z]+)$ share.php?hash=$1&lang=$2 [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)$ share.php?hash=$1 [QSA]
RewriteRule ^([.a-zA-Z0-9_-]+)\.php$ share.php?hash=$1 [QSA]
RewriteRule ^([.a-zA-Z0-9_-]+)--([a-z]+)$ share.php?hash=$1&lang=$2 [QSA]
RewriteRule ^([.a-zA-Z0-9_-]+)$ share.php?hash=$1 [QSA]
</IfModule>
';
file_put_contents($downloadFolder."/.htaccess", $htaccessContent);
Expand Down Expand Up @@ -1051,7 +1051,7 @@ public static function loadMinisite($data, $hash = '', $error = null)
if(isSet($_GET["dl"]) && isSet($_GET["file"])){
AuthService::$useSession = false;
}else{
session_name("AjaXplorer_Shared".$hash);
session_name("AjaXplorer_Shared".str_replace(".","_",$hash));
session_start();
AuthService::disconnect();
}
Expand Down

0 comments on commit 99a718a

Please sign in to comment.