mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-25 18:06:15 -04:00
timeslider: Fix export links
Names of the pads can contain more charaters than \w. So while transforming the export links, we simply can allow all charaters except the slash as pad names.
This commit is contained in:
parent
ac41d150c0
commit
74ad7a8584
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ function handleClientVars(message)
|
|||
// export_links is a jQuery Array, so .each is allowed.
|
||||
export_links.each(function()
|
||||
{
|
||||
this.setAttribute('href', this.href.replace( /(.+?)\/\w+\/(\d+\/)?export/ , '$1/' + padId + '/' + revno + '/export'));
|
||||
this.setAttribute('href', this.href.replace( /(.+?)\/[^\/]+\/(\d+\/)?export/ , '$1/' + padId + '/' + revno + '/export'));
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue