Showthumb.php.png In Search New Panel - Page 2 Showthumb.php.png In Search New Panel - Page 2
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Showthumb.php.png In Search New Panel

Started by nowordneeded, March 26, 2019, 08:50:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ron4mac

Quote from: nowordneeded on March 29, 2019, 05:45:44 AM
What files were fixed in the package not directly on those galleries you fixed are going to have be fixed, or will that be corrected in the download for version 1.6.05?

The file that was changed is showthumb.php. It would not be a part of the packaged (single zip file) version of 1.6.05. You can use the cpg_installer_stub to install a new or update an existing installation with all the current, late-breaking changes by selecting the bottom (highlighted in red) install option.

I don't expect it to be too long before we package version 1.6.06, which would include that change.

nowordneeded

Quote from: Phill Luckhurst on March 29, 2019, 09:44:32 AM
It is never a good idea to use hyphens in file names in Linux. They can be miss-interpreted as a switch. Best avoid them in future.

I've always used them ever since my first CPG installation way back in 2006 with the 1.3.0 series. Never had any issues till moving to the new host/server.
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

Quote from: ron4mac on March 29, 2019, 01:08:26 PM
The file that was changed is showthumb.php. It would not be a part of the packaged (single zip file) version of 1.6.05. You can use the cpg_installer_stub to install a new or update an existing installation with all the current, late-breaking changes by selecting the bottom (highlighted in red) install option.

I don't expect it to be too long before we package version 1.6.06, which would include that change.

I guess what I can do for further installations is to copy the [rr]showthumb.php[/tt] file from either of the galleries you fixed and replace it in the package on my hard drive. And where would I find the cpg_installer_stub file?

Thanks again.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac


phill104

#24
Quote from: nowordneeded on March 30, 2019, 01:50:12 AM
I've always used them ever since my first CPG installation way back in 2006 with the 1.3.0 series. Never had any issues till moving to the new host/server.

Still doesn't make it a good idea. It does to some extent depend on the Linux distro but spaces in filenames as well as hyphens can cause problems. You can give your pictures names like that, just for the actual file name itself it is not recommended by most Linux packagers.

Let's give and extreme example of why not. This is the most extreme case but valid.

Canon have last year launched their new RF lens mount. Superb for mirrorless cameras and some wonderful lenses have been launched. You've bought yourself a shiny new Canon R and a new RF lens to go with it. You save your first pic in windows can cal it "-rf test pic with new lens" which is fine in windows.

Later on you copy this file to your Linux box but accidentally put it in the root directory. So using the command line you decide to delete the file. In Linux you use the rm command which is short for remove.

rm-rf test pic with new lens

What would happen? Well, Linux would see the rm -rf as a command. The -rf switch means recursive (the r) and force (the f). This simple mistake would delete all the files and folders on your install without so much as an are you sure.

Now that is an extreme example. You would be amazed however how common problems occur using hyphens and spaces in file names. Good code can mitigate things, we can strip these out or ignore them etc with an extra step. However, one day these things can cause you a headache.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Thank you Phill for the explanation. I've also just upgraded using the installer script. I'm now current with 1.6.06. Thanks to all for this amazing ability to upgrade so easily. Most appreciated.
Sometimes my musings are too confusing for someone not inside my head.