mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
quick JS fix to prevent BBcode JS errors
This commit is contained in:
parent
d151bc1fd7
commit
af36a22695
@ -1710,8 +1710,9 @@ var addtext = function(text, emote) {
|
||||
// Prompt for user input value
|
||||
var addinput = function(text) {
|
||||
|
||||
var rep = text.match(/=([a-z0-9, ]*)]/);
|
||||
var val = prompt(rep[1]);
|
||||
// quick fix to prevent JS errors - proper match was done only for latin words
|
||||
var rep = text.match(/\=([^\]]*)\]/);
|
||||
var val = rep ? prompt(rep[1]) : prompt('http://');
|
||||
|
||||
if(!val)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user