Ohio Rev. Code Ann. § 2921.34
(A)
(2)
(B) Irregularity in bringing about or maintaining detention, or lack of jurisdiction of the committing or detaining authority, is not a defense to a charge under this section if the detention is pursuant to judicial order or in a detention facility. In the case of any other detention, irregularity or lack of jurisdiction is an affirmative defense only if either of the following occurs:
(C) Whoever violates this section is guilty of escape.
(2) If the offender violates division (A)(1) or (2) of this section and if either the offender, at the time of the commission of the offense, was under detention in any other manner or the offender is a person for whom the requirement that the entire prison term imposed upon the person pursuant to division (A)(3) or (B) of section 2971.03 of the Revised Code be served in a state correctional institution has been modified pursuant to section 2971.05 of the Revised Code, escape is one of the following:
(c) A felony of the fifth degree, when any of the following applies: