Closed macbaed closed 2 weeks ago
My links contain hyphens. Why did you remove it in the regex?
Hi @macbaed, I forgot to update the regex on the frontend, thanks for the reminder.
My links contain hyphens. Why did you remove it in the regex?
Because of issue #223. Since NC 29 there are problems with links with hyphen which Nextcloud won't fix (see nextcloud/server/issues/45381)
OK, thanks for the explanation. A little bit annoying for me, but not your fault.
Environment:
Bug description The regex in AppConstants.php and TokenValidation do not match.
AppConstants.php DEFAULT_VALID_TOKENREGEX = '/^[a-zA-Z0-9]+$/'
TokenValidation.js regex in tokenValidityCheck method: /^[a-zA-Z0-9_-+]+$/
To Reproduce Steps to reproduce the behavior:
Expected behavior