Explorar el Código

checkSessionId

walkor hace 2 años
padre
commit
75c4a5aad9
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/Protocols/Http/Session.php

+ 1 - 1
src/Protocols/Http/Session.php

@@ -439,7 +439,7 @@ class Session
      */
     protected static function checkSessionId(string $sessionId): void
     {
-        if (!preg_match('/^[a-zA-Z0-9]+$/', $sessionId)) {
+        if (!preg_match('/^[a-zA-Z0-9"]+$/', $sessionId)) {
             throw new RuntimeException("session_id $sessionId is invalid");
         }
     }