Skip to content

Commit

Permalink
#71 #73 bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Puguh Wijayanto committed Sep 5, 2017
1 parent 8465b4e commit 5a128e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ https://docs.genix.id/user-guide/installation/

- Upload all files, except `inc/config/config.php`.
- edit your site's config.php,
- add this new configuration
- add this new configuration if not exist
```php
define('SITE_ID', 'type-random-chars');
define('ADMIN_DIR', 'gxadmin');
Expand Down
6 changes: 3 additions & 3 deletions inc/lib/Menus.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public static function updateMenuOrder($vars)
{
foreach ($vars as $k => $v) {

// print_r($v);
$v['order'] = Typo::int($v['order']);
$sql = array(
'table' => 'menus',
'id' => Typo::int($k),
Expand Down Expand Up @@ -395,7 +395,7 @@ public static function update($vars)
$sql = array(
'table' => 'menus',
'id' => $vars['id'],
'key' => $vars['key'],
'key' => $vars['key']
);
$menu = Db::update($sql);
}
Expand All @@ -407,7 +407,7 @@ public static function delete($id)
$sql = array(
'table' => 'menus',
'where' => array(
'id' => $id,
'id' => $id
),
);
$menu = Db::delete($sql);
Expand Down
2 changes: 1 addition & 1 deletion inc/lib/Typo.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public static function filterXss($str)
// $str = preg_replace('#on.*=["|\'](.*)["|\']#', '', $str);
$str = preg_replace('#(?!<pre>.*?)(onload|onerror|onblur|onchange|onscroll|oninput|
onfocus|onbeforescriptexecute|ontoggle|onratechange|onreadystatechange|onpropertychange|
onqt_error|onpageshow|onclick|onmouseover|onunload|event|formaction|actiontype|background)=("|\')(.*)("|\')(?!.*?</pre>)#', '', $str);
onqt_error|onpageshow|onclick|onmouseover|onunload|event|formaction|actiontype|background|oncut)=("|\')(.*)("|\')(?!.*?</pre>)#', '', $str);
$str = preg_replace('#(.*?)(javascript:.*)(.*?)#', '', $str);
//$str = preg_replace('#&lt;(.*?)script&gt;#', '', $str);
return $str;
Expand Down

0 comments on commit 5a128e8

Please sign in to comment.