Match Windows version discovery response and route forms
This commit is contained in:
1 parent
05e31e7f11
commit
81e074b7c3
2 files changed
+12
-4
No files matched your search
+1
-1
@@ -29,7 +29,7 @@ if ($path === '/') {
|
||||
|
||||
$patientLookup = getenv('EZSERVER_SQLITE')
|
||||
&& preg_match('~\A/api(?:/index\.php)?/v1/e2ds/patientsbychartno/?\z~i', $path ?? '');
|
||||
if (!$patientLookup && !preg_match('~\A/api(?:/index\.php)?(?:/v1/(?:auth/ping|info/(?:versions|versionsbyname)))?/?\z~i', $path ?? '')) {
|
||||
if (!$patientLookup && !preg_match('~\A/api(?:/index\.php)?(?:/v1/(?:auth/ping|info/(?:versions|versionsbyname(?:/name/[^/]+)?)))?/?\z~i', $path ?? '')) {
|
||||
failRequest(404, 'Route is unavailable in the macOS preview');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user