[Rt-commit] rt branch 5.0/arbitrary-user-name-in-rt-sessions created. rt-5.0.3-65-g8d4d23fb67
BPS Git Server
git at git.bestpractical.com
Fri Jul 29 19:56:40 UTC 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".
The branch, 5.0/arbitrary-user-name-in-rt-sessions has been created
at 8d4d23fb67d788adb67bb0c4b3f76c6070afa7a5 (commit)
- Log -----------------------------------------------------------------
commit 8d4d23fb67d788adb67bb0c4b3f76c6070afa7a5
Author: sunnavy <sunnavy at bestpractical.com>
Date: Sat Jul 30 02:31:54 2022 +0800
Support arbitrary user names in .rt_sessions
Previously we only allowed "\w+" there, which was far less than what RT
supports. This commit changes to ".+" to remove the unnecessary limit.
diff --git a/bin/rt.in b/bin/rt.in
index 879f1f04a2..136440aea3 100644
--- a/bin/rt.in
+++ b/bin/rt.in
@@ -1212,8 +1212,8 @@ sub submit {
while (<$handle>) {
chomp;
next if /^$/ || /^#/;
- next unless m#^https?://[^ ]+ \w+ [^;,\s]+=[0-9A-Fa-f]+$#;
- my ($server, $user, $cookie) = split / /, $_;
+ next unless m#^(https?://[^ ]+) (.+) ([^;,\s]+=[0-9A-Fa-f]+)$#;
+ my ($server, $user, $cookie) = ($1, $2, $3);
$sids->{$server}{$user} = $cookie;
}
return 1;
-----------------------------------------------------------------------
hooks/post-receive
--
rt
More information about the rt-commit
mailing list