aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2023-11-28 14:10:29 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2023-11-28 14:10:29 +0000
commit2883c7d5884a7729adcfb7541e96afb1e53541e1 (patch)
treebdad9ca12fdb2491f859c566e30afaea68f48b9a
parente1fdf06a062f08bf788f73706abbcde5f8ec434c (diff)
downloadpmwiki.svn-2883c7d5884a7729adcfb7541e96afb1e53541e1.tar.bz2
Fix urlapprove.php for PHP 8.2. PmSyntax textarea remove styles for width, height (Cookbook:PmSyntax-Talk).
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4546 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r--pub/guiedit/pmwiki.syntax.js2
-rw-r--r--scripts/urlapprove.php2
2 files changed, 1 insertions, 3 deletions
diff --git a/pub/guiedit/pmwiki.syntax.js b/pub/guiedit/pmwiki.syntax.js
index 61926c1d..24dcc448 100644
--- a/pub/guiedit/pmwiki.syntax.js
+++ b/pub/guiedit/pmwiki.syntax.js
@@ -489,8 +489,6 @@
if(!hltEnabled) return;
var rect = text.getBoundingClientRect();
var w = Math.floor(rect.width) + 'px', h = Math.floor(rect.height) + 'px';
- text.style.width = w;
- text.style.height = h;
htext.style.width = w;
htext.style.height = h;
textScrolled();
diff --git a/scripts/urlapprove.php b/scripts/urlapprove.php
index c416d62f..29d51139 100644
--- a/scripts/urlapprove.php
+++ b/scripts/urlapprove.php
@@ -69,7 +69,7 @@ function LinkHTTP($pagename,$imap,$path,$alt,$txt,$fmt=NULL) {
}
$FmtV['$LinkUrl'] = PUE(str_replace('$1',$path,$IMap[$imap]));
$FmtV['$LinkText'] = $txt;
- $FmtV['$LinkAlt'] = str_replace(array('"',"'"),array('&#34;','&#39;'),$alt);
+ $FmtV['$LinkAlt'] = str_replace(array('"',"'"),array('&#34;','&#39;'),strval(@$alt));
$UnapprovedLink[] = $url;
@$UnapprovedLinkCount++;
return FmtPageName($UnapprovedLinkFmt,$pagename);