From 5a990cf3a408c0bcd14149acce7360dc5ae5a332 Mon Sep 17 00:00:00 2001 From: overkam <44203987+overkam@users.noreply.github.com> Date: Mon, 14 Jan 2019 19:38:59 +0300 Subject: [PATCH 1/2] Closes #505 --- www/application/classes/Controller/Articles/Modify.php | 2 +- www/application/classes/Controller/Users/Index.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/www/application/classes/Controller/Articles/Modify.php b/www/application/classes/Controller/Articles/Modify.php index 38129d646..a97aa8c6d 100644 --- a/www/application/classes/Controller/Articles/Modify.php +++ b/www/application/classes/Controller/Articles/Modify.php @@ -154,7 +154,7 @@ public function action_save() return; } - $uri = Arr::get($_POST, 'uri'); + $uri = strtolower(Arr::get($_POST, 'uri')); $alias = Model_Aliases::generateUri($uri); if ($article_id) { diff --git a/www/application/classes/Controller/Users/Index.php b/www/application/classes/Controller/Users/Index.php index 7323dcdf2..258bba0a9 100644 --- a/www/application/classes/Controller/Users/Index.php +++ b/www/application/classes/Controller/Users/Index.php @@ -73,6 +73,7 @@ public function action_settings() $name = Arr::get($_POST, 'name'); $bio = Arr::get($_POST, 'bio'); $alias = Arr::get($_POST, 'alias'); + $alias = strtolower(Arr::get($_POST, 'alias')); $instagram_uri = $this->methods->parseUri(Arr::get($_POST, 'instagram_uri')); $vk_uri = $this->methods->parseUri(Arr::get($_POST, 'vk_uri')); From ea2f35d1ca51d7965012864e70151c7a9d03727f Mon Sep 17 00:00:00 2001 From: overkam <44203987+overkam@users.noreply.github.com> Date: Mon, 14 Jan 2019 19:42:11 +0300 Subject: [PATCH 2/2] Closes #505 --- www/application/classes/Controller/Articles/Modify.php | 2 +- www/application/classes/Controller/Users/Index.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/www/application/classes/Controller/Articles/Modify.php b/www/application/classes/Controller/Articles/Modify.php index a97aa8c6d..4569bf6f9 100644 --- a/www/application/classes/Controller/Articles/Modify.php +++ b/www/application/classes/Controller/Articles/Modify.php @@ -154,7 +154,7 @@ public function action_save() return; } - $uri = strtolower(Arr::get($_POST, 'uri')); + $uri = strtolower(Arr::get($_POST, 'uri')); $alias = Model_Aliases::generateUri($uri); if ($article_id) { diff --git a/www/application/classes/Controller/Users/Index.php b/www/application/classes/Controller/Users/Index.php index 258bba0a9..a570b5f84 100644 --- a/www/application/classes/Controller/Users/Index.php +++ b/www/application/classes/Controller/Users/Index.php @@ -73,7 +73,7 @@ public function action_settings() $name = Arr::get($_POST, 'name'); $bio = Arr::get($_POST, 'bio'); $alias = Arr::get($_POST, 'alias'); - $alias = strtolower(Arr::get($_POST, 'alias')); + $alias = strtolower(Arr::get($_POST, 'alias')); $instagram_uri = $this->methods->parseUri(Arr::get($_POST, 'instagram_uri')); $vk_uri = $this->methods->parseUri(Arr::get($_POST, 'vk_uri'));