aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/Utils.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-01-23 20:05:41 +0100
committerArthurHoaro <arthur@hoa.ro>2020-01-26 11:34:14 +0100
commit9e4cc28e2957e1f7df713d52a03e350d728dc58e (patch)
treec659f36c3f483de0cfae30cada7441c9d3e48226 /application/Utils.php
parentdd51f653d07dba226fa1088f56ca258ef9b4ae87 (diff)
downloadShaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.tar.gz
Shaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.tar.zst
Shaarli-9e4cc28e2957e1f7df713d52a03e350d728dc58e.zip
Fix all existing links and redirection to ?do=login
Diffstat (limited to 'application/Utils.php')
-rw-r--r--application/Utils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/Utils.php b/application/Utils.php
index 56f5b9a2..4b7fc546 100644
--- a/application/Utils.php
+++ b/application/Utils.php
@@ -159,7 +159,7 @@ function checkDateFormat($format, $string)
159 */ 159 */
160function generateLocation($referer, $host, $loopTerms = array()) 160function generateLocation($referer, $host, $loopTerms = array())
161{ 161{
162 $finalReferer = '?'; 162 $finalReferer = './?';
163 163
164 // No referer if it contains any value in $loopCriteria. 164 // No referer if it contains any value in $loopCriteria.
165 foreach (array_filter($loopTerms) as $value) { 165 foreach (array_filter($loopTerms) as $value) {