Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-9561

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 3.0.7-PL1
    • Login
    • None

      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;
      			}
      		}

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

              Created:
              Updated:
              Resolved: