PluginProbe
Faust.js / 1.0.2
Faust.js v1.0.2
1.8.12 1.8.11 1.4.1 1.8.0 1.8.8 1.8.9 trunk 0.7.0 0.7.1 0.7.10 0.7.11 0.7.3 0.7.4 0.7.5 0.7.6 0.7.7 0.7.8 0.7.9 0.8.0 0.8.1 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 All 40 releases
← All changes | includes/auth/callbacks.php +3 -1 0.7.71.0.2 View file →
@@ -21,9 +21,11 @@
21 21 *
22 22 * @return void
23 23 */
24 24 function handle_generate_endpoint() {
25 - if ( ! preg_match( '/^\/generate/', $_SERVER['REQUEST_URI'] ) ) { // phpcs:ignore WordPress.Security
25 + $search_pattern = ':^' . site_url( '/generate', 'relative' ) . ':';
26 +
27 + if ( ! preg_match( $search_pattern, $_SERVER['REQUEST_URI'] ) ) { // phpcs:ignore WordPress.Security
26 28 return;
27 29 }
28 30
29 31 if ( empty( $_GET['redirect_uri'] ) ) { // phpcs:ignore WordPress.Security