Skip to content

Commit

Permalink
Escape hyphens in Site HOME/GIIS URL regexes
Browse files Browse the repository at this point in the history
- PHP 7.3 and newer versions use a newer underlying library to handle
  regexes which more strict in the regex pattern validations.
- So now these hyphens have to be escaped.
  • Loading branch information
gregcorbett committed Oct 12, 2023
1 parent eb1f1ad commit 4c236b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/gocdb_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
<field>
<fname>HOME_URL</fname>
<length>255</length>
<regex>/^((http|https)\:\/\/([\w-]+\.)+[\w-]+([\w-.\/?%&amp;=]*))?$/</regex>
<regex>/^((http|https)\:\/\/([\w\-]+\.)+[\w\-]+([\w\-\.\/?%&amp;=]*))?$/</regex>
</field>
<field>
<fname>GIIS_URL</fname>
<length>255</length>
<regex>/^(ldap\:\/\/([\w-]+\.)+[\w-]+([\w-.:,\/?%&amp;=]*))?$/</regex>
<regex>/^(ldap\:\/\/([\w\-]+\.)+[\w\-]+([\w\-.:,\/?%&amp;=]*))?$/</regex>
</field>
<field>
<fname>IP_RANGE</fname>
Expand Down

0 comments on commit 4c236b9

Please sign in to comment.