Add trailing slash to saburl on profile edit

This commit is contained in:
DariusIII
2016-03-06 17:02:35 +01:00
parent dbfdc8948f
commit e1efcd48fc
4 changed files with 7 additions and 3 deletions
+2
View File
@@ -1,3 +1,5 @@
2016-03-06 DariusIII
* Upd: Add trailing slash to saburl on profile edit
2016-03-02 DariusIII
* Fix: Prevent undefined notices in Gamma theme books page
* Fix: Fix Gamma menu on hover, use shared script for menu hover in all the themes.
+2 -2
View File
@@ -2,8 +2,8 @@
<newznab>
<versions>
<sql>
<db>241</db>
<file>241</file>
<db>242</db>
<file>242</file>
</sql>
<git>
<tag>0.0.0</tag>
@@ -0,0 +1,2 @@
/* Force users' saburl entry to have a trailing slash */
UPDATE users SET saburl = CONCAT(saburl, '/') WHERE RIGHT(saburl, 1) != '/';
+1 -1
View File
@@ -76,7 +76,7 @@ switch ($action) {
(isset($_POST['nzbgeturl']) ? $_POST['nzbgeturl'] : ''),
(isset($_POST['nzbgetusername']) ? $_POST['nzbgetusername'] : ''),
(isset($_POST['nzbgetpassword']) ? $_POST['nzbgetpassword'] : ''),
(isset($_POST['saburl']) ? $_POST['saburl'] : ''),
(isset($_POST['saburl']) ? Utility::trailingSlash($_POST['saburl']) : ''),
(isset($_POST['sabapikey']) ? $_POST['sabapikey'] : ''),
(isset($_POST['sabpriority']) ? $_POST['sabpriority'] : ''),
(isset($_POST['sabapikeytype']) ? $_POST['sabapikeytype'] : ''),