Commit de9f660
authored
Fix user and user_path in FSNode for subpath deployments (#297)
Fixes #296 .
Changes proposed in this pull request:
* Regex instantiated on import for performance
* Regex to fetch accurate user path regardless of subpath
* Regex to fetch accurate user regardless of subpath
Tested against three Nextcloud instances, with or without /nextcloud and
index.php in the path.
---------
Signed-off-by: Scott Williams <[email protected]>1 parent aef1ed2 commit de9f660
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
| |||
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
221 | | - | |
| 227 | + | |
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
225 | 231 | | |
226 | | - | |
| 232 | + | |
227 | 233 | | |
228 | 234 | | |
229 | 235 | | |
| |||
0 commit comments