mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 04:01:40 +01:00
Merge branch 'MDL-26940-master' of git://github.com/FMCorz/moodle
This commit is contained in:
commit
7647ed4645
@ -1200,6 +1200,15 @@ function openpopup(event, args) {
|
||||
}
|
||||
}
|
||||
|
||||
// Cleans window name because IE does not support funky ones.
|
||||
var nameregex = /[^a-z0-9_]/i;
|
||||
if (args.name.match(nameregex)) {
|
||||
args.name = args.name.replace(nameregex, '_');
|
||||
if (M.cfg.developerdebug) {
|
||||
alert('DEVELOPER NOTICE: Invalid \'name\' passed to openpopup()');
|
||||
}
|
||||
}
|
||||
|
||||
var fullurl = args.url;
|
||||
if (!args.url.match(/https?:\/\//)) {
|
||||
fullurl = M.cfg.wwwroot + args.url;
|
||||
|
Loading…
x
Reference in New Issue
Block a user