always tolower username
This commit is contained in:
1 parent
29b22ece9e
commit
b05d209423
6 files changed
+6
-11
No files matched your search
+1
-1
@@ -16,7 +16,7 @@ if (strpos($sharehandle, "&fbclid")) {
|
||||
$sharehandle = base64url_decode($sharehandle);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
@@ -18,9 +18,8 @@ if (!isset($sharehandle)) { //Deal with no usable request
|
||||
|
||||
$sharehandle = base64url_decode($sharehandle);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
+1
-2
@@ -21,9 +21,8 @@ if (!isset($itemid)) { //Deal with no usable request
|
||||
|
||||
$sharehandle = base64url_decode($itemid);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
@@ -9,9 +9,8 @@ if (!isset($sharehandle) || $sharehandle == "")
|
||||
|
||||
$sharehandle = base64url_decode($sharehandle);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
@@ -15,9 +15,8 @@ if (strpos($sharehandle, "&fbclid")) {
|
||||
|
||||
$sharehandle = base64url_decode($sharehandle);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
+1
-2
@@ -22,9 +22,8 @@ if (!isset($itemid)) { //Deal with no usable request
|
||||
|
||||
$sharehandle = base64url_decode($itemid);
|
||||
$shareparts = explode("|", $sharehandle);
|
||||
|
||||
if (count($shareparts) > 1) {
|
||||
$username = $shareparts[0];
|
||||
$username = strtolower($shareparts[0]);
|
||||
$contentid = $shareparts[1];
|
||||
|
||||
if (!is_dir("data/" . $username)) {
|
||||
|
||||
Reference in new issue
Block a user