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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 3.0.7-PL1
    • None
    • Login
    • 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

              A_Jelly_Doughnut A_Jelly_Doughnut
              nickvergessen Joas Schilling
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: