File: Updates-examples-autoload-require-path.patch

package info (click to toggle)
google-recaptcha 1.3.0-2%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 456 kB
  • sloc: php: 1,085; makefile: 8
file content (92 lines) | stat: -rw-r--r-- 4,379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
From: William Desportes <williamdes@wdes.fr>
Date: Fri, 1 Jan 2021 22:48:21 +0100
Subject: Update example to use the Debian php autoload format

Forwarded: not-needed
---
 examples/recaptcha-content-security-policy.php | 2 +-
 examples/recaptcha-v2-checkbox-explicit.php    | 2 +-
 examples/recaptcha-v2-checkbox.php             | 2 +-
 examples/recaptcha-v2-invisible.php            | 2 +-
 examples/recaptcha-v3-request-scores.php       | 2 +-
 examples/recaptcha-v3-verify.php               | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/examples/recaptcha-content-security-policy.php b/examples/recaptcha-content-security-policy.php
index 86dcdbd..36d9a10 100644
--- a/examples/recaptcha-content-security-policy.php
+++ b/examples/recaptcha-content-security-policy.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // This example shows the use of a Content Security Policy
 // https://developers.google.com/web/fundamentals/security/csp/
diff --git a/examples/recaptcha-v2-checkbox-explicit.php b/examples/recaptcha-v2-checkbox-explicit.php
index bfdc4a0..a307bea 100644
--- a/examples/recaptcha-v2-checkbox-explicit.php
+++ b/examples/recaptcha-v2-checkbox-explicit.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // Register API keys at https://www.google.com/recaptcha/admin
 $siteKey = '';
diff --git a/examples/recaptcha-v2-checkbox.php b/examples/recaptcha-v2-checkbox.php
index 7eb5e4b..91e36b7 100644
--- a/examples/recaptcha-v2-checkbox.php
+++ b/examples/recaptcha-v2-checkbox.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // Register API keys at https://www.google.com/recaptcha/admin
 $siteKey = '';
diff --git a/examples/recaptcha-v2-invisible.php b/examples/recaptcha-v2-invisible.php
index bed5d4f..94c19e2 100644
--- a/examples/recaptcha-v2-invisible.php
+++ b/examples/recaptcha-v2-invisible.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // Register API keys at https://www.google.com/recaptcha/admin
 $siteKey = '';
diff --git a/examples/recaptcha-v3-request-scores.php b/examples/recaptcha-v3-request-scores.php
index 766c373..ae0bba4 100644
--- a/examples/recaptcha-v3-request-scores.php
+++ b/examples/recaptcha-v3-request-scores.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // Register API keys at https://www.google.com/recaptcha/admin
 $siteKey = '';
diff --git a/examples/recaptcha-v3-verify.php b/examples/recaptcha-v3-verify.php
index 3b6517a..de174ff 100644
--- a/examples/recaptcha-v3-verify.php
+++ b/examples/recaptcha-v3-verify.php
@@ -35,7 +35,7 @@ require __DIR__ . '/appengine-https.php';
 // Initiate the autoloader. The file should be generated by Composer.
 // You will provide your own autoloader or require the files directly if you did
 // not install via Composer.
-require_once __DIR__ . '/../vendor/autoload.php';
+require_once 'ReCaptcha/autoload.php';
 
 // Register API keys at https://www.google.com/recaptcha/admin
 $siteKey = '';