NextGEN Gallery – WordPress Gallery Plugin - Version 1.3.5

Version Description

Download this release

Release Info

Developer alexrabe
Plugin Icon 128x128 NextGEN Gallery – WordPress Gallery Plugin
Version 1.3.5
Comparing to
See all releases

Code changes from version 1.3.4 to 1.3.5

Files changed (4) hide show
  1. changelog.txt +4 -1
  2. js/ngg.js +8 -0
  3. lib/rewrite.php +6 -6
  4. nggallery.php +2 -2
changelog.txt CHANGED
@@ -1,7 +1,10 @@
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
- V1.3.4 - 07.06.2009
 
 
 
5
  - Added : New filter ngg_gallery_object and ngg_image_object
6
  - Bugfix : Fix double rendering of a gallery if two album shortcodes are used
7
  - Bugfix : Fix for custom field ngg_gal_sort
1
  NextGEN Gallery
2
  by Alex Rabe & NextGEN DEV Team
3
 
4
+ V1.3.5 - 17.07.2009
5
+ - Bugfix : Fixed XSS issue for Page title
6
+
7
+ V1.3.4 - 07.07.2009
8
  - Added : New filter ngg_gallery_object and ngg_image_object
9
  - Bugfix : Fix double rendering of a gallery if two album shortcodes are used
10
  - Bugfix : Fix for custom field ngg_gal_sort
js/ngg.js CHANGED
@@ -45,6 +45,10 @@ function ngg_ajax_navigation(e, obj) {
45
 
46
  var galleryId = payload.substr(0, separatorPosition);
47
  var postId = payload.substr(separatorPosition + 1);
 
 
 
 
48
 
49
  ngg_show_loading(e);
50
 
@@ -114,6 +118,10 @@ function ngg_ajax_browser_navigation(e, obj) {
114
  var galleryId = payload.substr(0, separatorPosition);
115
  var postId = payload.substr(separatorPosition + 1);
116
 
 
 
 
 
117
  ngg_show_loading(e);
118
 
119
  // get content
45
 
46
  var galleryId = payload.substr(0, separatorPosition);
47
  var postId = payload.substr(separatorPosition + 1);
48
+
49
+ if ( (galleryId.length == 0) || (postId.length == 0) ) {
50
+ return true;
51
+ }
52
 
53
  ngg_show_loading(e);
54
 
118
  var galleryId = payload.substr(0, separatorPosition);
119
  var postId = payload.substr(separatorPosition + 1);
120
 
121
+ if ( (galleryId.length == 0) || (postId.length == 0) ) {
122
+ return true;
123
+ }
124
+
125
  ngg_show_loading(e);
126
 
127
  // get content
lib/rewrite.php CHANGED
@@ -181,19 +181,19 @@ class nggRewrite {
181
  $new_title .= __('Gallery', 'nggallery') . $sep ;
182
 
183
  if ( !empty($pid) )
184
- $new_title .= __('Picture', 'nggallery') . ' ' . $pid . $sep ;
185
 
186
  if ( !empty($album) )
187
- $new_title .= __('Album', 'nggallery') . ' ' . $album . $sep ;
188
 
189
  if ( !empty($gallery) )
190
- $new_title .= __('Gallery', 'nggallery') . ' ' . $gallery . $sep ;
191
 
192
  if ( !empty($nggpage) )
193
- $new_title .= __('Page', 'nggallery') . ' ' . $nggpage . $sep ;
194
 
195
- if ( !empty($tag) )
196
- $new_title .= $tag . $sep;
197
 
198
  // for all sub pages we add the canonical tag
199
  if ( !empty($new_title) )
181
  $new_title .= __('Gallery', 'nggallery') . $sep ;
182
 
183
  if ( !empty($pid) )
184
+ $new_title .= __('Picture', 'nggallery') . ' ' . intval($pid) . $sep ;
185
 
186
  if ( !empty($album) )
187
+ $new_title .= __('Album', 'nggallery') . ' ' . intval($album) . $sep ;
188
 
189
  if ( !empty($gallery) )
190
+ $new_title .= __('Gallery', 'nggallery') . ' ' . intval($gallery) . $sep ;
191
 
192
  if ( !empty($nggpage) )
193
+ $new_title .= __('Page', 'nggallery') . ' ' . intval($nggpage) . $sep ;
194
 
195
+ //if ( !empty($tag) )
196
+ //$new_title .= attribute_escape($tag) . $sep;
197
 
198
  // for all sub pages we add the canonical tag
199
  if ( !empty($new_title) )
nggallery.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: NextGEN Gallery
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the Web 2.0.
6
  Author: Alex Rabe
7
- Version: 1.3.4
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
@@ -44,7 +44,7 @@ if(preg_match('#' . basename(__FILE__) . '#', $_SERVER['PHP_SELF'])) { die('You
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
- var $version = '1.3.4';
48
  var $dbversion = '1.3.1';
49
  var $minium_WP = '2.7';
50
  var $minium_WPMU = '2.7';
4
  Plugin URI: http://alexrabe.boelinger.com/?page_id=80
5
  Description: A NextGENeration Photo gallery for the Web 2.0.
6
  Author: Alex Rabe
7
+ Version: 1.3.5
8
 
9
  Author URI: http://alexrabe.boelinger.com/
10
 
44
  if (!class_exists('nggLoader')) {
45
  class nggLoader {
46
 
47
+ var $version = '1.3.5';
48
  var $dbversion = '1.3.1';
49
  var $minium_WP = '2.7';
50
  var $minium_WPMU = '2.7';