WP-Gallery2 Plugin v0.8.1

A couple of day ago, a user (yeah, someone is actually using the plugin) reported a problem with the WP-Gallery2 plugin where he was getting the following error:
Line 43 in [...]

A couple of day ago, a user (yeah, someone is actually using the plugin) reported a problem with the WP-Gallery2 plugin where he was getting the following error:

Warning: substr_compare() [function.substr-compare]: The length cannot exceed initial string length <path>/wp-content/plugins/wp-gallery2/lib/gallery.php on line 43

Line 43 in the gallery.php file reads:

if (substr_compare ($url, "main.php", -8, 8)) {

After some thought, I concluded that the reason for the error comes from the fact that the length of the string in the variable $url was less then 8 characters.

The fix for this was pretty easy and simple and version 0.8.1 of the plugin is out containing that fix.

gz
WP-Gallery2 Plugin
Version: 0.8.1
Categories:WP-Gallery2, Code
Posted on:Jun 25th, 2010 10:44
Description:
115.7 kB
144 Downloads

VN:F [1.9.13_1145]
Rating: 2.0/5 (1 vote cast)
VN:F [1.9.13_1145]
Rating: 0 (from 0 votes)
WP-Gallery2 Plugin v0.8.1, 2.0 out of 5 based on 1 rating