mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
- fix some bugs in imageset editing, includes [Bug #2269]
git-svn-id: file:///svn/phpbb/trunk@6080 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
3562bc5580
commit
f04a3349e6
1 changed files with 9 additions and 6 deletions
|
@ -1233,10 +1233,13 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||||
|
|
||||||
$this->page_title = 'EDIT_IMAGESET';
|
$this->page_title = 'EDIT_IMAGESET';
|
||||||
$update = (isset($_POST['update'])) ? true : false;
|
$update = (isset($_POST['update'])) ? true : false;
|
||||||
$imgname = (!empty($_POST['imgname'])) ? htmlspecialchars($_POST['imgname']) : '';
|
$imgname = request_var('imgname', '');
|
||||||
$imgpath = (isset($_POST['imgpath'])) ? htmlspecialchars($_POST['imgpath']) : '';
|
$imgpath = request_var('imgpath', '');
|
||||||
$imgsize = (!empty($_POST['imgsize'])) ? true : false;
|
$imgsize = request_var('imgsize', false);
|
||||||
$imgwidth = (isset($_POST['imgwidth'])) ? intval($_POST['imgwidth']) : '';
|
$imgwidth = request_var('imgwidth', 0);
|
||||||
|
|
||||||
|
$imgname = preg_replace('#[^a-z0-9\-+_]#i', '', $imgname);
|
||||||
|
$imgpath = str_replace('..', '.', $imgpath);
|
||||||
|
|
||||||
if ($imageset_id)
|
if ($imageset_id)
|
||||||
{
|
{
|
||||||
|
@ -1383,7 +1386,7 @@ pagination_sep = \'{PAGINATION_SEP}\'
|
||||||
|
|
||||||
$imgsize_bool = (!empty($imgname) && ($imgsize || preg_match('#\*\d+#', $$imgname))) ? true : false;
|
$imgsize_bool = (!empty($imgname) && ($imgsize || preg_match('#\*\d+#', $$imgname))) ? true : false;
|
||||||
|
|
||||||
$img_info = explode('*', $imgname);
|
$img_info = (!empty($imgname)) ? explode('*', $$imgname) : array();
|
||||||
|
|
||||||
$template->assign_vars(array(
|
$template->assign_vars(array(
|
||||||
'S_EDIT_IMAGESET' => true,
|
'S_EDIT_IMAGESET' => true,
|
||||||
|
|
Loading…
Add table
Reference in a new issue