<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>12050</bug_id>
          
          <creation_ts>2011-02-12 22:02:21 +0000</creation_ts>
          <short_desc>&lt;img src=&quot;#my file&quot;... doesnt display image</short_desc>
          <delta_ts>2011-08-04 05:13:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>LC1 HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Megaten">megaten</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>ayg</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>mjs</cc>
    
    <cc>Paul.Cotton</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>rubys</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>45440</commentid>
    <comment_count>0</comment_count>
    <who name="Megaten">megaten</who>
    <bug_when>2011-02-12 22:02:21 +0000</bug_when>
    <thetext>If you use a correct filename with an # or an | charactere the command 

&lt;IMG src=&quot;#myfilename&quot;....  or

&lt;IMG src=&quot;|ourfile&quot;...      

 doesn&apos;t display any image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45444</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Cotton">Paul.Cotton</who>
    <bug_when>2011-02-13 01:43:48 +0000</bug_when>
    <thetext>Changing the Component to &quot;HTML5 spec&quot; and setting Assignee to Ian Hickson.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45446</commentid>
    <comment_count>2</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-02-13 10:35:21 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; If you use a correct filename with an # or an | charactere the command 
&gt; 
&gt; &lt;IMG src=&quot;#myfilename&quot;....  or
&gt; 
&gt; &lt;IMG src=&quot;|ourfile&quot;...      
&gt; 
&gt;  doesn&apos;t display any image.

The parameter is a URI reference, not a filename. The &quot;#&quot; would need to be escaped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45457</commentid>
    <comment_count>3</comment_count>
    <who name="Megaten">megaten</who>
    <bug_when>2011-02-13 21:40:04 +0000</bug_when>
    <thetext>Sorry | character is an invalide character for filename but the case is stil there with an  # anywhere inside the filename.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45458</commentid>
    <comment_count>4</comment_count>
    <who name="Megaten">megaten</who>
    <bug_when>2011-02-13 21:51:24 +0000</bug_when>
    <thetext>No more succes with an escape character</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45459</commentid>
    <comment_count>5</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-02-14 00:37:05 +0000</bug_when>
    <thetext>You need to URL-escape them, specifically replacing &quot;#&quot; with &quot;%23&quot;.  This doesn&apos;t have anything to do with the HTML spec, though.

(&quot;|&quot; is a valid filename in Unix, by the way, including Linux and OS X.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45460</commentid>
    <comment_count>6</comment_count>
    <who name="Megaten">megaten</who>
    <bug_when>2011-02-14 08:51:21 +0000</bug_when>
    <thetext>You are right. My misunderstanding is comming from the htmlenties that doesn&apos;t manage the # in standard.
So I close the item


&lt;?php
$fn = &quot;Config/img/@#T%23_Sur la route.jpg&quot; ;
$fh = htmlentities($fn);
echo $fh.&quot;***&quot;.$fh.&quot;&lt;br /&gt;&quot;;

echo &quot;&lt;img src=\&quot;&quot;.$fh.&quot;\&quot; /&gt;&quot; ;
?&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53357</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-08-04 05:13:06 +0000</bug_when>
    <thetext>mass-move component to LC1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>