• Damien Ramelet's avatar
    [bforbank] Change regex in order to correctly recover url value · fba22b3e
    Damien Ramelet authored
    On BforBank website, when an user has several accounts, there is a
    dropdown with all accounts available. The module iterate over this
    dropdown and recover the value attribute of each <option> in order to build the
    url that lead to saids accounts.
    
    The previous regex that extract the value attribute was like this:
    
    r'[^\d]' which allow to extract this value 123456789 and lead to build
    this kind of url :
    
    BASE_URL/espace-client/rib/123456789
    
    This now lead to a 500 error and a lookalike unavailable/maintenance page.
    
    The value attribute has obviously changed, and now look like this :
    
    COMPTE_TITRE/yLsl6hUcNO_FbC7i9i0fUkFdESgVzGF2nwVuHfQhs08=
    
    PEA/Alql9hUcDO_FbL4i9i4fUoPdJSgQzHF2nwVuHfQhs08=
    
    etc...
    
    r'/(.+)' allow to extract the value following the slash and build
    this kind of url:
    
    BASE_URL/espace-client/rib/wk4C9nIlhkw8-DGPATODM4QuZgPTf5-RQb1ftWHpoqA=
    fba22b3e
Name
Last commit
Last update
.ci Loading commit data...
.gitlab/issue_templates Loading commit data...
contrib Loading commit data...
docs Loading commit data...
icons Loading commit data...
man Loading commit data...
modules Loading commit data...
tools Loading commit data...
weboob Loading commit data...
woob Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
ChangeLog Loading commit data...
INSTALL Loading commit data...
MANIFEST.in Loading commit data...
MANIFEST.in.modules Loading commit data...
README.md Loading commit data...
build.mk Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...