Skip to content

Commit ce5a785

Browse files
OsandaMalithdanpoltawski
authored andcommitted
MDL-45683 user: Escaping Skype ID used in profile
1 parent 9dbf62d commit ce5a785

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: user/profile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@
334334

335335
if ($user->skype && !isset($hiddenfields['skypeid'])) {
336336
$imurl = 'skype:'.urlencode($user->skype).'?call';
337-
$iconurl = new moodle_url('http://mystatus.skype.com/smallicon/'.$user->skype);
337+
$iconurl = new moodle_url('http://mystatus.skype.com/smallicon/'.urlencode($user->skype));
338338
if (strpos($CFG->httpswwwroot, 'https:') === 0) {
339339
// Bad luck, skype devs are lazy to set up SSL on their servers - see MDL-37233.
340340
$statusicon = '';

0 commit comments

Comments
 (0)