mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
quick JS fix to prevent BBcode JS errors
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user