mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	More debug things.
This commit is contained in:
		| @@ -67,18 +67,25 @@ trait UserNavigation | ||||
|             'transactions.mass-delete.uri' => '/transactions/show/', | ||||
|         ]; | ||||
|         $forbidden = $array[$identifier] ?? '/show/'; | ||||
|  | ||||
|         Log::debug(sprintf('The forbidden word for %s is "%s"', $identifier, $forbidden)); | ||||
|  | ||||
|         $uri = (string)session($identifier); | ||||
|         Log::debug(sprintf('The URI is %s', $uri)); | ||||
|         if ( | ||||
|             !(false === strpos($identifier, 'delete')) | ||||
|             && !(false === strpos($uri, $forbidden))) { | ||||
|             $uri = $this->redirectUri; | ||||
|             Log::debug(sprintf('URI is now %s (identifier contains "delete")', $uri)); | ||||
|         } | ||||
|         if (!(false === strpos($uri, 'jscript'))) { | ||||
|             $uri = $this->redirectUri; // @codeCoverageIgnore | ||||
|             Log::debug(sprintf('URI is now %s (uri contains jscript)', $uri)); | ||||
|         } | ||||
|  | ||||
|         // more debug notes: | ||||
|         Log::debug(sprintf('strpos($identifier, "delete"): %s', var_export(strpos($identifier, 'delete'), true))); | ||||
|         Log::debug(sprintf('strpos($uri, $forbidden): %s', var_export(strpos($uri, $forbidden), true))); | ||||
|  | ||||
|         return $uri; | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user