Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9561

"Cannot break from 1 level"-Error in redirect function.

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.0.7-PL1
    • Fix Version/s: None
    • Component/s: Login
    • Labels:
      None

      Description

      While logging in from some mod related code, I got this error.

      Fatal error: Cannot break/continue 1 level in ****/www/community/includes/functions.php on line 2348

      (line number is current git status aswell )

      		if (!$disable_cd_check && !file_exists($pathinfo['dirname']))
      		{
      			$url = str_replace('../', '', $url);
      			$pathinfo = pathinfo($url);
       
      			if (!file_exists($pathinfo['dirname']))
      			{
      				// fallback to "last known user page"
      				$url = generate_board_url() . '/' . $user->page['page'];
      				break;
      			}
      		}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                A_Jelly_Doughnut A_Jelly_Doughnut
                Reporter:
                nickvergessen Joas Schilling [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: