Revision 42
Added by stefan about 20 years ago
| modify_post.php | ||
|---|---|---|
| 51 | 51 |
function initEditor() {
|
| 52 | 52 |
var editor = new HTMLArea("short");
|
| 53 | 53 |
editor.registerPlugin(ContextMenu); |
| 54 |
editor.config.pageStyle = "body { <?php echo $admin->strip_slashes(WYSIWYG_STYLE); ?> }";
|
|
| 54 |
editor.config.pageStyle = "body { <?php echo $admin->strip_slashes_dummy(WYSIWYG_STYLE); ?> }";
|
|
| 55 | 55 |
editor.generate(); |
| 56 | 56 |
var editor = new HTMLArea("long");
|
| 57 | 57 |
editor.registerPlugin(ContextMenu); |
| 58 | 58 |
editor.registerPlugin(TableOperations); |
| 59 |
editor.config.pageStyle = "body { <?php echo $admin->strip_slashes(WYSIWYG_STYLE); ?> }";
|
|
| 59 |
editor.config.pageStyle = "body { <?php echo $admin->strip_slashes_dummy(WYSIWYG_STYLE); ?> }";
|
|
| 60 | 60 |
editor.generate(); |
| 61 | 61 |
} |
| 62 | 62 |
</script> |
| ... | ... | |
| 72 | 72 |
<tr> |
| 73 | 73 |
<td width="80"><?php echo $TEXT['TITLE']; ?>:</td> |
| 74 | 74 |
<td> |
| 75 |
<input type="text" name="title" value="<?php echo $admin->strip_slashes(htmlspecialchars($fetch_content['title'])); ?>" style="width: 100%;" maxlength="255" /> |
|
| 75 |
<input type="text" name="title" value="<?php echo $admin->strip_slashes_dummy(htmlspecialchars($fetch_content['title'])); ?>" style="width: 100%;" maxlength="255" />
|
|
| 76 | 76 |
</td> |
| 77 | 77 |
</tr> |
| 78 | 78 |
<tr> |
| ... | ... | |
| 121 | 121 |
<tr> |
| 122 | 122 |
<td valign="top"><?php echo $TEXT['SHORT']; ?>:</td> |
| 123 | 123 |
<td> |
| 124 |
<textarea name="short" id="short" style="width: 100%; height: 135px;"><?php echo htmlspecialchars($admin->strip_slashes($fetch_content['short'])); ?></textarea> |
|
| 124 |
<textarea name="short" id="short" style="width: 100%; height: 135px;"><?php echo htmlspecialchars($admin->strip_slashes_dummy($fetch_content['short'])); ?></textarea>
|
|
| 125 | 125 |
</td> |
| 126 | 126 |
</tr> |
| 127 | 127 |
<tr> |
| 128 | 128 |
<td valign="top"><?php echo $TEXT['LONG']; ?>:</td> |
| 129 | 129 |
<td> |
| 130 |
<textarea name="long" id="long" style="width: 100%; height: 300px;"><?php echo htmlspecialchars($admin->strip_slashes($fetch_content['long'])); ?></textarea> |
|
| 130 |
<textarea name="long" id="long" style="width: 100%; height: 300px;"><?php echo htmlspecialchars($admin->strip_slashes_dummy($fetch_content['long'])); ?></textarea>
|
|
| 131 | 131 |
</td> |
| 132 | 132 |
</tr> |
| 133 | 133 |
</table> |
Also available in: Unified diff
Changed most occurrences of strip_slashes to new dummy method strip_slashes_dummy.