- remove unnecessary addslashes in comments.cpp
- in template use modifier |@default instead of |default (generated code is faster because we indicate that the input is scalar and not an array) git-svn-id: http://piwigo.org/svn/trunk@3487 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
ed23132fc7
commit
ae6ab9966b
2 changed files with 16 additions and 16 deletions
|
@ -101,8 +101,8 @@ if (isset($_GET['cat']) and 0 != $_GET['cat'])
|
|||
if (isset($_GET['author']) and !empty($_GET['author']))
|
||||
{
|
||||
$page['where_clauses'][] =
|
||||
'u.'.$conf['user_fields']['username'].' = \''.addslashes($_GET['author']).'\'
|
||||
OR author = \''.addslashes($_GET['author']).'\'';
|
||||
'u.'.$conf['user_fields']['username'].' = \''.$_GET['author'].'\'
|
||||
OR author = \''.$_GET['author'].'\'';
|
||||
}
|
||||
|
||||
// search a substring among comments content
|
||||
|
|
|
@ -42,9 +42,9 @@
|
|||
<form method="post" action="{$comment.U_EDIT}" class="filter" id="editComment">
|
||||
<fieldset>
|
||||
<legend>{'Edit a comment'|@translate}</legend>
|
||||
<label>{'comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|escape}</textarea></label>
|
||||
<label>{'comment'|@translate}<textarea name="content" id="contenteditid" rows="5" cols="80">{$comment.CONTENT|@escape}</textarea></label>
|
||||
<input type="hidden" name="key" value="{$comment.KEY}">
|
||||
<input type="hidden" name="image_id" value="{$comment.IMAGE_ID|default:$current.id}">
|
||||
<input type="hidden" name="image_id" value="{$comment.IMAGE_ID|@default:$current.id}">
|
||||
<input class="submit" type="submit" value="{'Submit'|@translate}">
|
||||
</fieldset>
|
||||
</form>
|
||||
|
|
Loading…
Reference in a new issue