Skip to content

Commit 4c5583e

Browse files
committed
Escape apostrophes for JS
1 parent bafe89a commit 4c5583e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/plugins-display.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// If we're updating plugins, update those shown
1717
if (isset($_GET['updatedPlugins'])) {
18-
echo "<script>top.document.getElementById('pluginsOptional').innerHTML = '".$pluginsDisplay."';</script>";
18+
echo "<script>top.document.getElementById('pluginsOptional').innerHTML = '".str_replace("'","\\'",$pluginsDisplay)."';</script>";
1919
}
2020

2121
// Work out what plugins we'll need to set on a setInterval

0 commit comments

Comments
 (0)