Jianwei-Zhang / LIMS

Laboratory Information Management System
https://jianwei-zhang.github.io/LIMS/
30 stars 10 forks source link

literar braces to be excaped for perl 2.26 and higher #2

Open kavonrtep opened 3 years ago

kavonrtep commented 3 years ago

With perl 2.26.1 I am getting

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\$commoncfg->{ <-- HERE HTDOCS}/ at /var/www/cgi-bin/lims/index.cgi line 36.

this is apparently related to https://perldoc.perl.org/5.26.0/perldelta#Unescaped-literal-%22%7B%22-characters-in-regular-expression-patterns-are-no-longer-permissible

matt-shenton commented 2 years ago

I'm also experience a similar error

[Wed Apr 06 09:36:33.444598 2022] [cgi:error] [pid 1256] [client 127.0.0.1:59956] AH01215: [Wed Apr 6 09:36:33 2022] index.cgi: Unescaped left brace in regex is passed through in regex; marked by <-- HERE in m/\$commoncfg->{ <-- HERE HTDOCS}/ at /var/www/cgi-bin/lims/index.cgi line 36.: /var/www/cgi-bin/lims/index.cgi, referer: http://localhost/lims/index.html

Is this indeed related to the perl version? I'm usiung ubuntu 20.04, perl v5.30.0