Whoops.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 25 Apr 2016 09:26:05 -0400
changeset 88 479571afa3c7
parent 87 6f646cf3a0df
child 89 59f649aeecef
Whoops.
IcculusFinger_daemon.pl
--- a/IcculusFinger_daemon.pl	Mon Apr 25 09:18:11 2016 -0400
+++ b/IcculusFinger_daemon.pl	Mon Apr 25 09:26:05 2016 -0400
@@ -685,9 +685,9 @@
         my $summary = $metadata{'summary'};
         my $titlestr = $title;
         # !!! FIXME: we need a proper HTML encoder.
-        $uname = s/'/\\'/g;
-        $titlestr = s/'/\\'/g;
-        $summary = s/'/\\'/g;
+        $uname =~ s/'/\\'/g;
+        $titlestr =~ s/'/\\'/g;
+        $summary =~ s/'/\\'/g;
         $twitter .= "<meta name='twitter:card' content='summary' />\n";
         $twitter .= "<meta name='twitter:site' content='\@$uname' />\n";
         $twitter .= "<meta name='twitter:title' content='$titlestr' />\n";