Forum

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
Apostrophe in filename
17 October, 2009
11:15 pm
fberardi
Member
Forum Posts: 7
Member Since:
2 October, 2009
Offline

Is using the apostrophe in a filesname still not working? I can avaoid it MOST of the time, but users are constantly trying to name a file with "God's" in the name (no quotes) and it does not show in the filelist to add.

Thanks again for the awesome sermon-browser!!

25 April, 2010
6:22 am
Bruce
Sidney BC Canada
New Member
Forum Posts: 1
Member Since:
21 November, 2009
Offline

Added a sermon with an apostrophe in the title and now when I view the sermons, it adds another copy and I cannot delete the copies. We have renamed the sermon to get it working, however we have two sermons with multiple copies I cannot remove.

25 April, 2010
8:07 pm
Ben Miller
Appleton, WI, USA
Moderator
Forum Posts: 386
Member Since:
18 June, 2009
Offline

Bruce, I looked at you site, but I can't see an example of what you are talking about. Can you post a link to an example from your site?

Ben Miller
Pathways Church, Appleton, WI, USA
6 May, 2010
3:08 pm
EdPasternak
Member
Forum Posts: 6
Member Since:
12 October, 2009
Offline

I had a similar problem. The only way I was able to resolve it was to do a rmdir at the command line to remove the directory which had the offending file then manually edit the SQL to delete the lines that it created.
The problem is that when PHP is reading the file it replaces the ' with a ' so ed's.mp3 turns into ed's.mp3. The operating systems see the as a directory and everything goes weird form there.
I have my files in a different directory then the default for the sermon browser. Uninstalling the sermon browser should eliminate the directory with the problem in it. I believe that there is also a checkbox option to remove uploaded files as well. So back up the database uninstall, reinstall, restore the database.

14 June, 2010
12:58 pm
jon
New Member
Forum Posts: 1
Member Since:
14 June, 2010
Offline

The problem with the JavaScript deletion links can be fixed by wrapping

$file->name

in a call to

esc_js

.

Example of this is line 988 sb-includes/admin.php:

javascript:kill(<?php echo $file->id ?>, '<?php echo esc_js($file->name) ?>');

There are probably a few more places which need this work.

PS – looks like this was already attempted (sort of) with the JS confirm (same line as example)

str_replace("'", '', $file->name)
Forum Timezone: Europe/London

Most Users Ever Online: 40

Currently Online:
15 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

malpan: 2453

jogen: 2440

VanWatterson: 652

GeraldSebring: 364

LucasWoltman: 362

RandellFeenstra: 362

Member Stats:

Guest Posters: 7

Members: 2062

Moderators: 1

Admins: 1

Forum Stats:

Groups: 1

Forums: 2

Topics: 1071

Posts: 4042

Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb

Moderators: Ben Miller (386)

Administrators: Mark Barnes (425)

Comments are closed.