Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 26 matches
Smarty Forum Index
Author Message
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
drgl

Replies: 6
Views: 10061

PostForum: General   Posted: Mon Apr 27, 2020 3:39 pm   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
Thankfully other people are a LOT more helpful than you! Fixed and won't be coming back here ever again. Kindly delete my account and ALL associated data.
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
drgl

Replies: 6
Views: 10061

PostForum: General   Posted: Tue Apr 21, 2020 8:10 am   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
The problem appears to be from {$smarty.request.search|escape:'htmlall'} which function.load_search.php is used for. If you aren't gong to help just say it, I'll ask elsewhere.
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
drgl

Replies: 6
Views: 10061

PostForum: General   Posted: Mon Apr 20, 2020 8:50 am   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
I thought the PHP was dealing with the programming? ie, this is function.load_search.php :-

<?php

function smarty_function_load_search($params, $smarty) {
$search = new Sea ...
  Topic: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
drgl

Replies: 6
Views: 10061

PostForum: General   Posted: Thu Apr 16, 2020 3:51 pm   Subject: PCI scan causing ERRNO: 2 TEXT: htmlspecialchars()
Hi, Not sure how to debug this. I have the following error that is ONLY happening when our site has a PCI scan running : -


ERRNO: 2
TEXT: htmlspecialchars() expects parameter 1 to be string, ar ...
  Topic: widont?? (escape?)
drgl

Replies: 2
Views: 6122

PostForum: General   Posted: Fri Feb 28, 2020 10:19 am   Subject: widont?? (escape?)
Found it, thanks!
  Topic: widont?? (escape?)
drgl

Replies: 2
Views: 6122

PostForum: General   Posted: Fri Feb 21, 2020 1:56 pm   Subject: widont?? (escape?)
Despite searching I can find no info on this, on one of my tpl files I see this :-

{$prods->mProds[c].name|escape:'htmlall'|widont}

What does the widont part do?

Thanks!
  Topic: php/tpl problems
drgl

Replies: 1
Views: 3233

PostForum: General   Posted: Tue Dec 11, 2018 10:59 am   Subject: php/tpl problems
Hi, in my PHP I have this :-


$page->assign('test', $test);
$test = $two_letter_country_code;

include("ip_files/countries.php");
$three_letter_country_code=$count ...
  Topic: forms & cross scripting
drgl

Replies: 6
Views: 24023

PostForum: Help Wanted (commercial)   Posted: Tue Oct 31, 2017 4:26 pm   Subject: forms & cross scripting
Could this work??

<form id="product_search" method="get" action="{$smarty.const.SITE_ROOT|escape:'html':'UTF-8'}/searchresults/">
<inpu ...
  Topic: forms & cross scripting
drgl

Replies: 6
Views: 24023

PostForum: Help Wanted (commercial)   Posted: Tue Oct 31, 2017 2:09 pm   Subject: forms & cross scripting
My sites have just failed a PCI scan, it seems this block of code is the problem :-

<form id="product_search" method="get" action="{$smarty.const.SITE_ROOT}/se ...
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Thu Oct 12, 2017 5:10 pm   Subject: Convert this script to work with smarty
So it could be just a fact that the code needs pasting elsewhere? The PHP page was indeed just a stand alone test page. Thanks again for all of your help & time.
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Thu Oct 12, 2017 8:23 am   Subject: Convert this script to work with smarty
Following instructions found online for Chrome, all I see is this on my test page that works :-

PHP

<html>

<head>

<script src="https://ajax.googleapis.com/aj ...
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Wed Oct 11, 2017 6:04 pm   Subject: Convert this script to work with smarty
I don't think it's the JS script as the script works OK on a plain old PHP page. Assuming you mean the jquery.countdown.min.js?
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Wed Oct 11, 2017 4:36 pm   Subject: Convert this script to work with smarty
Assuming that's what you meant I've done that. I had to change the times as nothing at all appeared (it's 5.30pm). All I get now is "Time left for Free Next Day Delivery: " with no count dow ...
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Wed Oct 11, 2017 4:28 pm   Subject: Convert this script to work with smarty
Ok, to be clear. Add the above code snippet to the body template and the other code references (below) to the header?

Header :-

<script src="https://ajax.googleapis.com/ajax/libs/jqu ...
  Topic: Convert this script to work with smarty
drgl

Replies: 27
Views: 74397

PostForum: Help Wanted (commercial)   Posted: Wed Oct 11, 2017 2:19 pm   Subject: Convert this script to work with smarty
if you can help please either post how or your price to do it. I'm no coder, someone who has already been replying hasn't got it to work (I'm sure they know a LOT more than me!), the guy who wrote the ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP