mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +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
|
// Prompt for user input value
|
||||||
var addinput = function(text) {
|
var addinput = function(text) {
|
||||||
|
|
||||||
var rep = text.match(/=([a-z0-9, ]*)]/);
|
// quick fix to prevent JS errors - proper match was done only for latin words
|
||||||
var val = prompt(rep[1]);
|
var rep = text.match(/\=([^\]]*)\]/);
|
||||||
|
var val = rep ? prompt(rep[1]) : prompt('http://');
|
||||||
|
|
||||||
if(!val)
|
if(!val)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user