switching to htmlspecialchars fixes category description problem with double-bytes encodings ( http://wordpress.org/support/6/5555 )
git-svn-id: http://svn.automattic.com/wordpress/trunk@1306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
91d7e604f2
commit
d3100d05cb
|
@ -107,7 +107,7 @@ case 'edit':
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p><?php _e('Description:') ?><br />
|
<p><?php _e('Description:') ?><br />
|
||||||
<textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo htmlentities($category->category_description); ?></textarea></p>
|
<textarea name="category_description" rows="5" cols="50" style="width: 97%;"><?php echo htmlspecialchars($category->category_description, ENT_NOQUOTES); ?></textarea></p>
|
||||||
<p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category »') ?>" /></p>
|
<p class="submit"><input type="submit" name="submit" value="<?php _e('Edit category »') ?>" /></p>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue