baruch / websec

Web Secretary -- Track and notify when a web page changes
GNU General Public License v2.0
4 stars 6 forks source link

Regex failing with Ubuntu 18.04 #1

Open gevrey opened 4 years ago

gevrey commented 4 years ago

Lines 228 & 233 need to be modified to escape the regex:

228 should be: while ($value =~ m/\$\{([^}]+)\}/) {

233 should be: $value =~ s/\$\{([^}]+)\}/$ENV{$1}/;

gevrey commented 4 years ago

Error message (for search engine indexing) is:

Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\${ <-- HERE ([^}]+)}/ at /home/cri/websec/websec line 233.