NetTalk Central

Author Topic: NT4: problem with "#" in path of image name  (Read 2905 times)

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
NT4: problem with "#" in path of image name
« on: April 14, 2010, 11:28:14 PM »
NT 4.47, Clarion 6.3 ABC

I'm having a problem with an image on a NetWebPage when the file name contains a "#". In this case, the image just does not display however it I can the file name to not have the "#" it works fine. Note that in my test case it is " #' (space before pound symbol) and not "&#" which I know if issue in HTML.

Any suggestions on how to work around this?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: NT4: problem with "#" in path of image name
« Reply #1 on: April 15, 2010, 05:26:05 AM »
um, well the most obvious _work around_ is to not name files with a # in the name.

as far as a fix goes, I'll have a look to see what can be done.

Bruce

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: NT4: problem with "#" in path of image name
« Reply #2 on: April 15, 2010, 05:34:43 AM »
I would love to do the obvious workaround of not using the "#" in the name but unfortunately the images are coming from a folder where the customer can copy in whatever they want.

So with that, I will be awaiting to see what you can find.

Thanks!

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: NT4: problem with "#" in path of image name
« Reply #3 on: April 27, 2010, 11:54:52 PM »
Update to this topic. The same problem will exist if the following are in the file name or path information. Also same with passed information on the URL:

Problem Characters:        #  '   ;

Researching the NetWeb.clw code, the older "_Clean" routine handled these characters however that routine has been changed to just call "_jsok" which does not.

I REALLY need a solution to this issue because I am having to work will file names that are outside of my control.


Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: NT4: problem with "#" in path of image name
« Reply #4 on: April 28, 2010, 07:45:42 AM »
Hi Barton,

I've fixed this in NetTalk 5, PR13 and NetTalk 4, 4.48 builds.
They're both in the process of being uploaded, which may take a bit of time yet, so you should be able to try it from some time tomorrow.

cheers
Bruce

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: NT4: problem with "#" in path of image name
« Reply #5 on: April 28, 2010, 08:20:36 AM »
Outstanding - Thanks!

bwhisler

  • Newbie
  • *
  • Posts: 33
    • View Profile
    • Email
Re: NT4: problem with "#" in path of image name
« Reply #6 on: April 29, 2010, 01:11:14 AM »
Bruce,

Please see private email sent to you in regards to new release. A new bug was introduced.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: NT4: problem with "#" in path of image name
« Reply #7 on: April 29, 2010, 05:03:36 AM »
Hi Guys,
yes there is a small regression in 4.48 and PR13. 4.49 is being uploaded, PR14 should be up late today or tomorrow.

the fix is straight-forward and can be applied by yourselves if necessary:

NetTalk 4.48
\clarion\libsrc\netweb.clw
line circa 2879 is
loc:src = self._MakeURL(self.escape(p_src,net:dos))
and should be
loc:src = self._MakeURL(self.escape(p_src,net:bigplus+net:dos))

NetTalk 5, PR13
change is the same at line circa 3123

Cheers
Bruce



cheers
Bruce