Project

General

Profile

« Previous | Next » 

Revision 40

Added by stefan about 19 years ago

Change addslashes,stripslashes to (wb class) method calls add_slashes,strip_slashes

View differences:

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->stripslashes(WYSIWYG_STYLE); ?> }";
54
	editor.config.pageStyle = "body { <?php echo $admin->strip_slashes(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->stripslashes(WYSIWYG_STYLE); ?> }";
59
	editor.config.pageStyle = "body { <?php echo $admin->strip_slashes(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->stripslashes(htmlspecialchars($fetch_content['title'])); ?>" style="width: 100%;" maxlength="255" />
75
		<input type="text" name="title" value="<?php echo $admin->strip_slashes(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->stripslashes($fetch_content['short'])); ?></textarea>
124
		<textarea name="short" id="short" style="width: 100%; height: 135px;"><?php echo htmlspecialchars($admin->strip_slashes($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->stripslashes($fetch_content['long'])); ?></textarea>
130
		<textarea name="long" id="long" style="width: 100%; height: 300px;"><?php echo htmlspecialchars($admin->strip_slashes($fetch_content['long'])); ?></textarea>
131 131
	</td>
132 132
</tr>
133 133
</table>

Also available in: Unified diff