diff --git a/Changelog b/Changelog index e5b504c7c..5daa09c1e 100755 --- a/Changelog +++ b/Changelog @@ -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. diff --git a/newznab/build/nntmux.xml b/newznab/build/nntmux.xml index fae113c95..03b5b4dc6 100755 --- a/newznab/build/nntmux.xml +++ b/newznab/build/nntmux.xml @@ -2,8 +2,8 @@ - 241 - 241 + 242 + 242 0.0.0 diff --git a/resources/db/patches/mysql/0242~users.sql b/resources/db/patches/mysql/0242~users.sql new file mode 100644 index 000000000..22750e43d --- /dev/null +++ b/resources/db/patches/mysql/0242~users.sql @@ -0,0 +1,2 @@ +/* Force users' saburl entry to have a trailing slash */ +UPDATE users SET saburl = CONCAT(saburl, '/') WHERE RIGHT(saburl, 1) != '/'; diff --git a/www/pages/profileedit.php b/www/pages/profileedit.php index 9b1f81752..887e253b5 100644 --- a/www/pages/profileedit.php +++ b/www/pages/profileedit.php @@ -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'] : ''),