cookie cm_registry_tz_auto restriction throws RuntimeException

XMLWordPrintable

      In AppController.php this code block

      if(!in_array($_COOKIE['cm_registry_tz_auto'], $timezone_identifiers)) {
                // This is not an acceptable value
               
                throw new RuntimeException(_txt('er.invalid.cookie'), HttpStatusCodesEnum::HTTP_NOT_ACCEPTABLE);
              } 

      will throw a RuntimeException when a browser sends in values like "Asia/Saigon" or "Asia/Calcutta" which are strictly speaking outdated, but some browsers are sending.

            Assignee:
            Arlen Johnson
            Reporter:
            Scott Koranda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: